Candibiotic
News Update :

JCAPS - JMSSecurityException

Sunday, March 8, 2009

JCAPS 6 issue - JMSSecurityException

Problem: Application working in JCAPS 5.1.3 but not in JCAPS 6.0, due to JMSSecurityException (client authentication fails due to an invalid user name or password)

For more details:

http://java.sun.com/j2ee/1.4/docs/api/javax/jms/JMSSecurityException.html

JCAPS 5.1.3 did not require this authentication, but JCAPS 6 requires this authentication.

Solution: We need to provide the username and password, while making the queue connection.

For more details:

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzaw.doc/uj29800_.htm

Example:

QueueConnectionFactory qcf = (QueueConnectionFactory) jndi.lookup("connectionfactories/queueconnectionfactory");

connection = qcf.createQueueConnection("admin","adminadmin");

connection.start();



Build and Deploy , the Application will run.



Share this Article on :

0 comments:

Post a Comment

 

© Copyright Vinayak Wins 2010 -2011 | Design by Herdiansyah Hamzah | Published by Borneo Templates | Powered by Blogger.com.