April 2002
Intermediate to advanced
318 pages
6h 58m
English
The API calls used to control the transaction depend on the type of transaction that is being used. There are three different scenarios:
When the only resources are the MQSeries messages (local unit of work):
In this scenario, the transaction is started by the first message sent or received under syncpoint control, as specified using the MQPMO_SYNCPOINT or MQGMO_SYNCPOINT option of the MQPutMessageOptions or MQGetMessageOptions objects. Multiple messages can be included in the same unit of work. The transaction can be committed by using the Commit() method or backed out by using the Backout() method of the MQQueueManager object. Example 6-9 shows how to put a message under syncpoint control.
Read now
Unlock full access