Posted: Thu Aug 24, 2006 12:26 am Post subject: Commit and Rollback
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
Posted: Thu Aug 24, 2006 12:53 am Post subject: Re: Commit and Rollback
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)...
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