JMS client connection sample for authentication enabled.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Avinash_Pandit
Posted On:   Sunday, March 26, 2006 11:32 PM

Please tell me how do I pass username and password in my JMS connection so as I can connect to swiftMQ if authentication is enabled ?

Thanks,
Avinash

Re: JMS client connection sample for authentication enabled.

Posted By:   Andreas_Mueller  
Posted On:   Monday, March 27, 2006 02:39 AM

Example for the JNDI-Provider URL:

smqp://username:password@localhost:4001/timeout=10000


Then lookup your connection factory and create a connection with username, password. Example:

QueueConnection qc = qcf.createQueueConnection(username, password);
About | Sitemap | Contact