|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Transaction cics abend after trigger mq |
« View previous topic :: View next topic » |
Author |
Message
|
giuly020277 |
Posted: Thu Feb 07, 2008 3:43 am Post subject: Transaction cics abend after trigger mq |
|
|
 Centurion
Joined: 07 Aug 2007 Posts: 146 Location: Florence,Italy
|
Hello,
i need again your suggests
i have mq on zos (version 6.0).
when i receive a message on queue (called PIPPO) from sun solaris platform... trigger (type first) let run a transaction cics (called TMAT) who update db2 and dl1 database.
The question is :
If transaction tmat while running get an abend (for example abend dhtj because dbctl is not running in that moment) message should come back into my queue PIPPO?
The commit is when program close my queue is right?so...if program take abend after closing the queue...i loose messages....? |
|
Back to top |
|
 |
Mr Butcher |
Posted: Thu Feb 07, 2008 4:52 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
first of all it depends if you MQGET the message with or without syncpoint. if done without syncpoint and MQGET returns with RC=0 your messages is removed from the queue, no matter whether you comit, backout or abend later.
if you get with syncpoint, then the message is gone, when you either use exec cics syncpoint or end your transaction "normal"
exec cics rollback or transaction abends will result in backout of the message (when using syncpoint with MQGET).
you must not use MQCMIT - see also application programmers reference:
CICS applications must use the EXEC CICS SYNCPOINT command to commit the unit of work explicitly. Alternatively, ending the transaction results in an implicit commit of the unit of work. The MQCMIT call cannot be used for CICS applications.
an MQCLOSE will not commit. _________________ Regards, Butcher |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|