users@glassfish.java.net

JMS Authentication

From: <glassfish_at_javadesktop.org>
Date: Wed, 14 Feb 2007 00:34:43 PST

Hello everybody,

I developed a simple application using an MDB where an external client sends a message to a Topic and the MDB receive and write a log message. This simple application was create to test authentication when I create a Connection using the method:

Connection connect = factory.createConnection(username, password);

To do that I configured a Connection Factory and a Topic through Glassfish Administration Page. By default a new ConnectionFactory is created assuming username and password as "guest" so I didn't need to specificate it when I created a Connection. I tried to modify the username and password but when I try to create the connection I have an exception. When I modify again username and password with default values all is working.
Is there someone able to explain me how this works?

Many thanks in advance,
Giordano
[Message sent by forum member 'giordano48' (giordano48)]

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