Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to code transactions in MQSERIES

Status
Not open for further replies.

deva12

Programmer
Jul 5, 2002
2
SG
I am using domino, websphere, mqseries & mainframe. The java servlet in the websphere will trigger the cics link program thru mqseries connection, the mainframe processed result should be updated to the domino document by the servlet. My problem is, if the updation of the domino fails, Shall i able to make a rollback the job done in mainframe.What are the architectural setup or codings are necessary to achieve this.or what should i need to confirm that the mqseries will certainly return the message!!
 
You cannot make the mainframe perform rollback in the event of domino failure, because MQSeries is processing asynchronously.

One option would be to set messages from mainframe to domino with MQMD.Expiry = MQEI_UNLIMITED and MQMD.Persistence = MQPER_PERSISTENT. With this, code your domino app to issue MQGET with MQGMO_SYNCPOINT so that, if the app fails, the message is again available on the queue, (even if the domino server QMgr fails). You must also check MQMD.BackoutCount to ensure you don't get into a repetitive abend for a corrupt message and decide what to do if MQMD.BackoutCount exceeds threshold.

GFC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top