How can I get an MDB to connect using a non-guest account?

This is a complete newbie question, but after scouring the SJSMQ 4.1 Admin & Dev guides I still can't find the answer.
How do I set up a message-driven bean to connect to the broker using any account other than guest? I tried setting the appropriate properties in the activation config as so:
@MessageDriven(mappedName = "jms/loginQueue", activationConfig = {
    @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),
    @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
    @ActivationConfigProperty(propertyName = "loginName", propertyValue = "notguest"),
    @ActivationConfigProperty(propertyName = "password", propertyValue = "secret")
})but all I got were deployment errors after disabling "guest" on the server. How does one configure the connection factory used for MDB creation? What simple thing am I missing?

Sorry you couldn't find this in the docs (I'll look into that).
The activation spec properties you need to set are userName (not loginName) and password:
@MessageDriven(mappedName = "jms/loginQueue", activationConfig = {    
@ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "userName", propertyValue = "notguest"),
@ActivationConfigProperty(propertyName = "password", propertyValue = "secret")
Hope that works...
Nigel
Edited by: nigeldeakin on 11-Dec-2008 10:51

Similar Messages

  • How can I get the App store to use money in my account rather than a credit card when I want to buy something?

    How can I get the App store to use money in my account rather than a credit card when I want to buy something?

    The iTunes/Mac App Stores use credit on an account first. You are asked to supply an additional payment method when the cash credit doesn't cover the complete cost of the purchase.

  • How can I get the ipad to connect to itunes 10.6.3?

    How can I get the ipad to connect to itunes 10.6.3?

    The iPad mini requires iTunes 10.7 or newer to sync.
    (82182)

  • How can I get my iPad to connect the love film app to my Apple TV?

    How can I get my iPad to connect the love film app to my Apple TV?

    Have you confirmed that the app supports AirPlay? If it doesn't, then you'll have to connect via screen mirroring. See:
    http://support.apple.com/kb/HT4437
    and
    http://support.apple.com/kb/HT5209
    Regards.

  • How can I get my Mac to connect faster to the Internet? My wifi connection is fine....don't know why Safari and other web browsers are so slow.

    How can I get my Mac to connect faster to the Internet? My wifi connection is fine....don't know why Safari and other web browsers are so slow.

    If possible, connect to your router with Ethernet and turn off Wi-Fi. Any difference?

  • How Can I Get My Ratings and Playlists to Mirror Across Multiple Accounts?

    I'm sharing my music across two accounts on my Mac by placing my iTunes folder in the Shared folder, with an alias to that in each User's Music folder. It works fine, but the User of the other account would like the benefit of all my Playlists, and would especially like to have all My Ratings.
    How can I get My Ratings and Playlists to mirror across multiple accounts? I would've thought simply importing the <iTunes Music Library.xml> file would do it, but since we're both using the same iTunes folder, we must already be using the same XML file, right?

    The answer about where the ratings, etc. are stored is not an easy one, but the best I can figure is that it is a combination of the iTunes Music Library.xml, the iTunes Library file, and the com.apple.iTunes.plist. Apparently, the com.apple.iTunes.plist (in the under User/Library/Preferences) references the other two files. If you close iTunes, take the com.apple.iTunes.plist out of the user's Library/Preferences folder and then reopen iTunes, you will see that all the ratings, play counts, etc. (track information) will have disappeared. If you close iTunes, replace the com.apple.iTunes.plist, then reopen iTunes, the track information will be restored. The playlists, which are not part of the track information, seem to function independently of the com.apple.iTunes.plist, but if you share the whole iTunes folder across accounts, this should include the playlists. When I back up my iTunes library to another folder, I back up a copy of the current com.apple.iTunes.plist from my User/Library/Preference folder. I think that the way this works across multiple accounts is that the com.apple.iTunes.plist reads track information from the other files in the iTunes folder, because if you throw away the com.apple.iTunes.plist from one user account, it affects all the other user accounts sharing the same iTunes folder.

  • How can we get  tag of XML file using SAX

    Hi ,
    I'm parsing one SAX parser , I'have almost done this parsing. i have faced problem for one case, i'e how can we get tag from XML file using SAX parser?
    XML file is
    <DFProperties>
    <AccessType>
    <Get/>
    </AccessType> <Description>
    gdhhd
    </Description>
    <DFFormat>
    <chr/>
    </DFFormat>
    <Scope>
    <Permanent/>
    </Scope>
    <DFTitle>gsgd</DFTitle>
    <DFType>
    <MIME>text/plain</MIME>
    </DFType>
    </DFProperties>
    I want out like GET and Permanent... means this one tag which is present inside of another tag.
    Handler class like
    public void startElement(String namespaceURI, String localName,
                   String qName, Attributes atts) throws SAXException {
    if(_ACCESSTYPE.equals(localName)){
                   accessTypeElement=ACCESSTYPE;
    public void characters(char[] ch, int start, int length)
                   throws SAXException {
    if (_ACCESSTYPE.equals(_accessTypeElement)) {
                   String strValue = new String(ch, start, length);
                   System.out.println("Accestype-----------------------------> " + strValue);
                   //System.out.println(" " + strValue);
    public void endElement(String namespaceURI, String localName, String qName)
                   throws SAXException {
    if (_ACCESSTYPE.equals(localName)) {
                   _accessTypeElement = "";
    . please any body help me

    Hi ,
    I have one problem,Please help me.
    1. How can I'll identify where exactly my Node is ended,means how how can we find corresponding nodename? in partcular place
    <Node> .............starttag1
    <NodeName>Test</NodeName>
    <Node>................starttag2
    <nodeName>test1</NodeName>
    </Node>..................endtag2
    <Node>.....................starttag3
    <NodeName><NodeName>
    <Node> .........................starttag4
    <NodeName>test4</NodeName>
    </Node>.......enddtag4
    </Node>...........end tag3
    </Node>............endtag1
    my code is below
    private final String _NODENAME = "NodeName";
    private final String _NODE = "Node";
    private String _nodeElement = "";
         private String _NodeNameElement = "";
    public void startElement(String namespaceURI, String localName,
                   String qName, Attributes atts) throws SAXException {
    if (_NODENAME.equals(localName)) {
                   NodeNameElement = NODENAME;
    if(_NODE.equals(localName)){
         System.out.println("start");
         if (_NODENAME.equals(localName)) {
                   NodeNameElement = NODENAME;
    public void characters(char[] ch, int start, int length)
                   throws SAXException {
    if (_NODENAME.equals(_NodeNameElement)) {
                   String strValue = new String(ch, start, length);
                   String sttt=strValue;
                   System.out.println("NODENAME: ************* " + strValue);
    if(_NODE.equals(_nodeElement)){
                   if (_NODENAME.equals(_NodeNameElement)) {
                        String strValue = new String(ch, start, length);
                        String sttt=strValue;
                        System.out.println("nodevalue********** " + strValue);
    public void endElement(String namespaceURI, String localName, String qName)
                   throws SAXException {
    if (_NODENAME.equals(localName)) {
                   _NodeNameElement = "";
    if(_NODE.equals(localName)){
                   System.out.println("NODENAME: %%%%%%%%%");
    please help me. How can I figure node ending for particular nodename

  • How can I get Win 10 to open to my prefered user account?

    How can I get Win 10 to open to my prefered user account?  It insists on going to my Administrative account.

    Hi,
    We could click the Back button beside the account Picture, then the screen would list the account available on this PC:
    After that, we could choose the account we want to use.
    Another way is to enable this policy:
    Interactive logon: Do not display last user name
    If this policy is enabled, the full name of the last user to successfully log on is not displayed on the Secure Desktop, nor is the user’s logon tile displayed;
    If this policy is disabled, the full name of the last user to log on is displayed, and the user’s logon tile is displayed.
    Press Win +X, then open the Run box, type Gpedit.msc,  when opening the Local Group Policy Editor, navigate to the following path:
    Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options
    On the right pane, find the above policy and then enable it.
    More information about that policy, please see:
    Interactive logon: Do not display last user name
    Best regards
    Michael Shao
    TechNet Community Support

  • How can we get requester's user id using java code

    Hi,
    How can we get requester's user id using java code?
    eg: If i had logged in as xelsysadm and request a resource for user uid101 on the userid field it should display uid101 and not xelsysadm.
    also,
    I have a resoure "A" which on revoking should also revoke resources B and C. How can it be done. Resource A, B, and C are 3 different resource objects.
    ==Thanks,
    doki

    Ok, so there is a way, but it's not available during submission. You can use the findRequests api. From the result set, get the "Requests.Consolidated Data Value" value. In this information, you will get an xml formatted data. It provides the list of users on the request on the left side after submission. After the request is completed, this value is available. Upon completion, you could get the request information, get this value, and parse the information for user ids.
    In the same adapter, use the following API:
    formIntf.setObjectFormData(objInstanceKey, formHash)
    The formHash is a hashtable containing the field name on your object form, and the values you wish to populate it with. You could create a textarea box on your object form and populate the userids for who the request is for.
    However, this makes absolutely 0 sense. When you get a request, the list of userids are listed right there on the request.
    -Kevin

  • How can i get mynew mac mini to use the drive in my old mac pro

    When I first got my new mac mini it dosen't have an internal drive.   So I hooked it up on the network and fire wire.  I could use the superdrive in the mac pro just fine  both itunes and the dvd player worked as they would with a internal drive.   But now a couple of upgrade down loads later not so much.  yes I can connect with screen share and can get the dvd player to play dvd's but still can't get itunes to use the superdrive.  Iht exect disk icon in the apple menue bar use to open and close the super drive but now it reads "no disk" How can I get my mac mini to automaticly use the superdrive when i turn on the mac pro. 
    I've done all the easy things changing the order of start up and share settings and i sware it did work ok when i first hooked it up.

    http://www.totalapps.net/mac/remote-disc-sharing-when-the-superdrive-doesn’t-wor k-2/
    Mind you, booting off the external optical drive of another computer may not be practical because of the different operating system limitations of the computers.   I would just purchase an external optical drive from http://www.macsales.com/ if you find it doesn't work.

  • How can i get my phone to let me av an icloud account when theres a maximum of three an they all been used?

    how can i get my icloud account to work on an iphone thats already had t maximum no. of 3 accounts on it

    If you need to create another account use a computer or other device.

  • How can I get file from multiple instance using file adapter

    Hi.
    Our system(PI7.1) have three application instances running with each physical servers.
    We use sender file adapter.
    The file data is sent to one of the servers.
    Now, how can I get the file using three file adater?
    Should I put the file "sapmnt(\usr\sap)" .
    Or are there another solution?
    regards,

    Hi Ashutosh
    You will have to use sapcar.zip which contains the utility Sapcar.exe utility for unzipping the files from SAP compressed files. (*.car file)
    Regards
    Gaurav
    PS: Reward points if solved

  • How can I get a one to one purchase assigned to my account?

    I got a new Mac Pro 15" notebook with a on eto one membership fro one year. it was ordered and paid by my dad on his Apple account. How can I get that transferred to my personal account ??

    Contact Apple Support
    http://support.apple.com/kb/HE57

  • How can I get airport to automatically connect to a network again?

    Dear helpful ones,
    I connect to the internet and a printer via a wireless router. Previously airport automatically logged in to my network. Recently, I had to reset my router and modem. Since then, airport doesn't automatically log in. I need to manually select my network from the airport menu to join after every time the computer sleeps or is shut down. The password is still in the keychain. I didn't think any of my computer setting had changed or needed to...
    If anyone can offer a suggestion as to how to get airport to once again automatically log in to my wireless network, this would be most appreciated.
    Yours, Jeremy

    There's quite a common problem with OS X and getting it to auto-connect, although there are fairly obvious simple ways to solve it they didn't always work, the procedure below is long winded but does have a fairly high success rate.
    1. Move "System Preferences.app" to "Applications\"
    2. Delete all preferred networks in Network Preferences
    3. Delete all Airport password in Keychain Access
    4. Restart
    5. Choose network from drop-down menu and enter password
    6. Restart

  • How can I get the hot spot connection to say working on my phone?

    I cannot get my hot spot connection to stay working.

    There are phone companies that do only allow tethering with more expensive rates. Would have to talk with your company to see if your phone can rate tethering.

Maybe you are looking for

  • How to trigger ENTER event in oo ALV grid

    Hi, Can anybody help me out in catching the ENTER event in the oo ALV Grid. My requirement is as follows, I have oo ALV Grid displaying hell lot of columns, in that vendor number column is an editable field so when the user enters the vendor number t

  • Pdf does not appear in acrobat 9

    So, when I open certain pdf documents they do not show up, only a gray background.  I believe I changed some setting that is causing this to happen.  The pdf is opened, it will appear in the Window menu list.  It will print, but I can't see it.  I ca

  • DNG 5.4 benefits over 4.6?

    I've got Canon EOS 500D and Creative Suite 3 & Lightroom 2.4 Problem is that support for 500D .cr2 -files comes in Camera Raw 5.4 and CS3 supports only 4.6. Now I'm converting all my images from CR2 to DNG (v. 4.6) when importing to Lightroom, to max

  • Quicksilver scsi drive size limit ?

    Hello all. The original 37gig SCSI drive on my Quicksilver (NOT mirror door) is beginning to sing a sad song so I am looking into replacement. I know there is a 128gig size limit for ATA drives in this model but is there any size limit for internal S

  • Which VISTA for MacBook (not Pro) 2GB 160GB HD w/Paralells

    QUESTION: Can MacBook handle BUSINESS or ULTIMATE VISTA? BACKGROUND: -- I am buying new Core 2 Duo Macbook (not Pro) with 2GB Memory and 160GB HD (currently have original Core Duo Macbook) -- This will be 'virgin' machine (no Windows OS or Boot Camp