Committing a unit of work in a JMS environment
When using a bindings mode connection, messages sent and received by the WebSphere® MQ classes for JMS in a CICS® JVM server environment are always associated with the CICS unit of work (UOW).
The UOW can only be completed by calling the commit or rollback methods on the com.ibm.cics.server.Task object, or by the CICS task ending normally, in which case the UOW is implicitly committed. The use of JMS API requests to commit or roll back the unit of work is not supported.
One exception to the above rule concerns support for non-persistent messages. These are also supported by the native MQI. For more details, see Transactional behavior.
For a mixed language application, an EXEC CICS SYNCPOINT command issued from a non- Java™ program will commit the whole unit of work, including the updates made to IBM MQ by a Java program.