April 2002
Intermediate to advanced
318 pages
6h 58m
English
Either local or global units of work can be started using the MQI API. Once started, any unit of work is completed using MQCMIT or MQBACK calls.
|
MQCMIT (Hconn, CompCode, Reason) MQBACK (Hconn, CompCode, Reason) |
A local unit of work is started when MQPMO_SYNCPOINT or MQGMO_SYNCPOINT is coded on an MQPUT or MQGET call and an MQBEGIN call has not been made, as follows:
MQPMO pmo; pmo.Options = MQPMO_SYNCPOINT; MQPUT(...);
Or:
MQGMO gmo; gmo.Options = MQGMO_SYNCPOINT; MQGET(...);
Every operation within the unit of work must have the MQPMO or MQGMO options set as shown in the previous code fragment.
A global unit of work starts when an MQBEGIN call is made. If a local unit of work has already been started, the MQBEGIN ...
Read now
Unlock full access