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:
Example:
QueueConnectionFactory qcf = (QueueConnectionFactory) jndi.lookup("connectionfactories/queueconnectionfactory");
connection = qcf.createQueueConnection("admin","adminadmin");
connection.start();
Build and Deploy , the Application will run.
0 comments:
Post a Comment