users@glassfish.java.net

JMS Authentication from remote standalone JSE appliation.

From: <glassfish_at_javadesktop.org>
Date: Thu, 01 Nov 2007 17:35:00 PST

Hello.

I'm a bit new to JMS and I'm having difficulty configuring JMS authentication in GF V2.

I created a client which create a connection using...

[code]connectionFactory.createConnection("yourname", "yourpass");[/code]

But curiously, when I change "yourname" and "yourpass" value above, it always succeeds connection.

Logs in client side show the following:

[code]
2007. 11. 2 AM 10:17:39 com.sun.messaging.jms.ra.ManagedConnectionFactory setPassword
Info: MQJMSRA_MF1101: setPassword:NOT setting default value
2007. 11. 2 AM 10:17:39 com.sun.messaging.jms.ra.ManagedConnectionFactory setUserName
Info: MQJMSRA_MF1101: setUserName:NOT setting default value=guest
...
2007. 11. 2 AM 10:23:16 com.sun.messaging.jms.ra.ManagedConnection <init>
Warning: MQJMSRA_MC2001: createConnection API used w/ username, password for Container Auth
[/code]

Guessing from above logs, createConnection() does not use the "yourname" and "yourpass" value, instead always use "guest" value.

What should I do for the "yourname", "yourpass" value to be effetive ?

Thank you in advance.

Regards.
Shawn.
[Message sent by forum member 'shwon24' (shwon24)]

http://forums.java.net/jive/thread.jspa?messageID=243398