Posted: Wed Sep 03, 2014 3:30 am Post subject: Multiple Nodes to Update database
Centurion
Joined: 28 May 2013 Posts: 127 Location: Hyderabad, India
Hi Champs,
I have an requirement in which i have to update two tables of the same database but if any of the table update got fail, i have to roll back all changes or commits.
after then i have to do certain task and then i have to fetch the value of the database based on the primary key and update the value.
but the problem is that i am using java compute node for update the database and i am using JDBC_TransactionType.MB_TRANSACTION_AUTO so that it will not commit the data till both of the table got propery inserted but due to this my data not commits and it reach the compute node where i am fetch the value and update the same table because content is not there in database as it not get updated yet.
Posted: Wed Sep 03, 2014 3:40 am Post subject: Re: Multiple Nodes to Update database
Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
new_to_wmb8 wrote:
I have an requirement in which i have to update two tables of the same database but if any of the table update got fail, i have to roll back all changes or commits.
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