5.7. Transaction management

Local resource manager transactions can be started by setting the syncpoint participation in the ImqPutMessages or ImqGetMessageOptions classes.

ImqPutMessageOptions pmo;

//This starts a local resource manager transaction
pmo.setSyncPointParticipation(TRUE);
pqueue.put(msg,pmo);

or

ImqGetMessageOptions gmo;

//This starts a local resource manager transaction
gmo.setSyncPointParticipation(TRUE);
pqueue.get(msg,gmo);

The ImqQueueManager object provides the transaction management interfaces required to begin, commit or rollback distributed transactions with this API.

A distributed transaction starts with a ImqQueueManager begin method call. Any operation within a transaction begin and end call is part of the transaction. ...

Get MQSeries Programming Patterns now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.