Restrictions for IBM MQ classes for Java under CICS Transaction Server
In the CICSĀ® Transaction Server for z/OSĀ® environment, only the main (first) thread is allowed to issue CICS or IBM MQ calls.
Note, that IBM MQ JMS classes are not supported for use in a CICS Java application.
It is therefore not possible to share MQQueueManager or MQQueue objects between threads in this environment, or to create a new MQQueueManager on a child thread.
Miscellaneous differences between IBM MQ classes for Java on z/OS and other platforms identifies some restrictions and variations that apply to the IBM MQ classes for Java when running against a z/OS queue manager. Additionally, when running under CICS, the transaction control methods on MQQueueManager are not supported. Instead of issuing MQQueueManager.commit() or MQQueueManager.backout(), applications use the JCICS task synchronization methods, Task.commit() and Task.rollback(). The Task class is supplied by JCICS in the com.ibm.cics.server package.