users@glassfish.java.net

Re: JMS Authentication

From: Sivakumar Thyagarajan <Sivakumar.Thyagarajan_at_Sun.COM>
Date: Wed, 14 Feb 2007 14:52:50 +0530

Hi Giordano

While creating the JMS resource, you could provide the username/password that is
used to create the JMS connection via the --properties attribute.[Property name
are UserName and Password [1]]

Did you also add the MQ users[2] using $AS_HOME/imq/bin/imqusermgr?

If that doesn't work, could you share your exception?

Thanks
--Siva.
[1] http://docs.sun.com/app/docs/doc/819-4724/6n6rubc9n?a=view
[2] http://docs.sun.com/app/docs/doc/816-5166/6mbb1kq3p?a=view


glassfish_at_javadesktop.org wrote:
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>