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 » WebSphere Message Broker (ACE) Support » Commit and Rollback

Post new topic  Reply to topic
 Commit and Rollback « View previous topic :: View next topic » 
Author Message
Sridar
PostPosted: Thu Aug 24, 2006 12:26 am    Post subject: Commit and Rollback Reply with quote

Acolyte

Joined: 14 May 2006
Posts: 72
Location: Chennai, India

Hi

I am calling an External Stored Procedure from my Message Flow(from compute node).

This Stored Procedure (not developed by me) may update multiple tables.

I have a requirement that if one of the table updates fail then the other committed table updates also have to be rolledback.

I have set Automatic in the Transaction property of the compute node which means any commit happens only after the message flow is complete.

I also have an Error handler flow which takes care of any error or exception received.

My doubt is if the Error thrown by one of the Table updates in DB during Stored Procedure Call is processed by Error Handler means Message Flow is successfully complete and the other Table updates which do not have any error will be committed?

If so how can i rollback these updates.Is there any Rollback command.

I am using MB5.0 and DB2.

Will using any other node make a difference?
_________________
Thanks and Regards
Sridar
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Thu Aug 24, 2006 12:53 am    Post subject: Re: Commit and Rollback Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi Sridar,
Sridar wrote:
My doubt is if the Error thrown by one of the Table updates in DB during Stored Procedure Call is processed by Error Handler means Message Flow is successfully complete and the other Table updates which do not have any error will be committed?

Had to read between the lines, but from what I understood:
All your updates are being done by the single compute, right....

Then if one is committed, then all have to be committed....you cannot have one db update committed and some others not....

If an error occured in even one update, then all the updates will be rolled back(in that compute, for automatic setting)...

Regards.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Commit and Rollback
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.