IBM MQJMS1068 error occurs when trying to create an XA connection from WebSphere Application Server to MQ - United States MQPRB MQPRB3189 TECHNOTE (TROUBLESHOOTING)

PROBLEM(ABSTRACT)
 When attempting to create an XA connection to WebSphere® MQ from either WebSphere Application Server Version 7.x or Version 8.x with a connection factory that uses the Client Channel Definition Table (CCDT), the following error appears in the application server's SystemOut.log file: 

 J2CA0056I: The Connection Manager received a fatal connection error from the Resource Adaptor for resource <connection factory>. The exception which was received is javax.jms.JMSException: MQJMS1068: failed to obtain XAResource 



CAUSE
The reason why it is not possible to use the CCDT with XA connections is related to transaction recovery. 

 If the application server stops while there are still active transactions, there is no way with the current implementation to ensure that it will connect to the same queue manager when it restarts. This can lead to in-doubt transactions being left dangling, and never resolved. 

 It is hoped that this restriction will be resolved in future releases of WebSphere Application Server and WebSphere MQ.

RESOLVING THE PROBLEM
The use of the Client Channel Definition Table (CCDT) with XA connections is not supported.

 

Cross reference information Segment Product Component Platform Version Edition Application Servers WebSphere Application Server Java Message Service (JMS) Application Servers Runtimes for Java Technology Java SDK 
PRODUCT ALIAS/SYNONYM
 WMQ WASAS WAS
Problems making XA connection from WMQ to WAS using a CCDT 

We have applications hosted on WAS 7.0.0.27. We have two hubs in Websphere MQ end. Hub1 queue manager and Hub2 queue manager.

We have 3 QCF's configured at WAS end as mentioned below

    jms/QM using a CCDT file pointing to a queue manager group.

    jms/QM01 using a direct connection to hub1 queue manager

    jms/QM02 using a direct connection to hub2 queue manager

We have 2 separate sync mdb listeners that connect using QCFs jms/QM01 and jms/QM02. We are using QCF jms/QM to put messages in MQ.

While processing sync messages out listeners are going down.

Please advise.
The use of the Client Channel Definition Table (CCDT) with XA connections is not supported.