This content has been marked as final.
Show 3 replies
-
1. Re: How to specify the username and password when connecting
timfox Jan 8, 2007 4:16 PM (in response to alllle)Connection conn = connectionFactory.createConnection(username, password);
-
2. Re: How to specify the username and password when connecting
alllle Jan 8, 2007 4:18 PM (in response to alllle)I just realized that I had an error in the posted code above. It didn't use the org.jboss.security.jndi.JndiLoginInitialContextFactory defined in the env hashtable.
I've changed it and got different set of errors before able to connect to the JMS. I need to look into it more. Will post result later.
Meanwhile if there is a standard way of passing the security principal / credential information from client to the JMS server, please let me know. -
3. Re: How to specify the username and password when connecting
alllle Jan 8, 2007 5:36 PM (in response to alllle)"timfox" wrote:
Connection conn = connectionFactory.createConnection(username, password);
The correct way to go!
Thank you very much for the help!