ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Mainframe, CICS, TXSeries » Roll back MQ without roll back DB2

Post new topic  Reply to topic
 Roll back MQ without roll back DB2 « View previous topic :: View next topic » 
Author Message
KIT_INC
PostPosted: Sat Oct 26, 2013 5:47 pm    Post subject: Roll back MQ without roll back DB2 Reply with quote

Knight

Joined: 25 Aug 2006
Posts: 589

When we update DB2 and MQ PUT or GET in s CICS transaction, can we have local unit of work ? I want to roll back MQ changes without affecting DB2 changes. The info center says we have to use EXEC CICS SYNCPOINT ROLLBACK and not MQBACK. But I think the CICS call will roll back DB2 also.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Sun Oct 27, 2013 2:21 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2495
Location: Melbourne, Australia

This seems to go against the UOW paradigm of all or nothing. You should review your design. How about putting the offending message to an error or reprocess queue and then committing everything?
_________________
Glenn
Back to top
View user's profile Send private message
KIT_INC
PostPosted: Sun Oct 27, 2013 3:09 pm    Post subject: Reply with quote

Knight

Joined: 25 Aug 2006
Posts: 589

Our requirement is very simple. One of the situation is an order comes in, we want to save it in DB2 and send messages out to a number of warehouses. But if any of the put fail for whatever reason, we want to roll back the MQPUTs but not the DB2 insert. There is some limitation that we can only pickup the order once and it is not an MQ message which can be rolled back to the input queue.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Oct 27, 2013 7:27 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

Have 2 transactions, one following the other?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
MQsysprog
PostPosted: Tue Apr 08, 2014 11:19 pm    Post subject: Reply with quote

Centurion

Joined: 24 Feb 2014
Posts: 116

That's a good design question ...
Firstly i would put an exec cics syncpoint immediately after the db2 insert and this thereafter, should be the first logical unit of work into your program l flux ,and then eventually an exec cics syncpoint rollback to backout the mqput .
You could also do from your main program , an xctl to a new transaction designed only to write the log in db2 ,in this case you will have a new indipendent luw which is obviously logically free in any case ...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Mainframe, CICS, TXSeries » Roll back MQ without roll back DB2
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.