WMQ single-phase commit is activated using the MQC.MQPMO_SYNCPOINT flag when setting messages or the MQC.MQGMO_SYNCPOINT flag when receiving messages. To exit, call the Commite or Backout object of the queue manager object.
Link: The Backout and Commit methods in the MQQueueManager section of the manual.
As long as you use managed code, you are limited to single-phase commit. If you use unmanaged code in binding mode (using shared memory to talk to local WMQ QMgr), you can use XA. In this case, you will need to use the Begin method.
T. rob
source share