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 : 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” );

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

Our environment:
WebSphere Application Server on IBM J9 VM, version pwa6480sr4fp5-20170421_01 (SR4 FP5) (en_US)
IBM MQ Resource Adapter

Our configuration:



Leave a Reply