MQ re-authentication error on Liberty when attempting to get a connection from a manager connection resource

We are in the process on migrating our application from tWAS to Liberty. We’ve run into a problem that we cannot resolve. We have two code paths where we create a connection from a managed connection resource. One code path gets a connection in order to publish a message to a queue while the second code path gets a connection in order to publish a message to a topic. The attempt to create the connection for publishing to the topic always fails with the following exception:

J2CA0021E: An exception occurred while trying to get a Connection from the Managed Connection resource jms/CounterFraudEventCF : com.ibm.mq.connector.DetailedSecurityException: MQJCA1028: Re-authentication is not supported., error code: MQJCA1028 The application server attempted to re-authenticate a JMS connection, but the IBM MQ resource adapter does not support re-authentication.

I am hoping there is an issue with our configuration but so far we’ve been unable to fix it.

The code used to create the connections:

InitialContext ic = new InitialContext();
QueueConnectionFactory queueCF = (QueueConnectionFactory)ic.lookup( “java:comp/env/jms/CounterFraudCF” );
queueCF.createConnection();

InitialContext ic = new InitialContext();
ConnectionFactory eventCF = (ConnectionFactory) ic.lookup(“java:comp/env/jms/CounterFraudEventCF”);
eventCF.createConnection();

Our environment:
WebSphere Application Server 17.0.0.1/wlp-1.0.16.cl170120170227-0220) on IBM J9 VM, version pwa6480sr4fp5-20170421_01 (SR4 FP5) (en_US)
IBM MQ 9.0.0.0
IBM MQ Resource Adapter 9.0.0.0-p900-L160512.4

Our configuration:

javaee-7.0localConnector-1.0distributedMap-1.0json-1.0wmqJmsClient-2.0passwordUtilities-1.0

Related:

Leave a Reply