GeeCON Prague 2014*
The moose likes JBoss/WildFly and the fly likes Two phase commit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Two phase commit" Watch "Two phase commit" New topic
Author

Two phase commit

francis varkey
Ranch Hand

Joined: Sep 13, 2005
Posts: 169
Hi ,
I am calling another application from my application . Some times my some of my application database operations getting failed . In this case , I need to roll back second application database operation also. For this what I have to do ? Both application are deployed in JBoss in different application.

Thanks
manoj r patil
Ranch Hand

Joined: Jun 06, 2002
Posts: 181
If your both applications are independent of each other, I don't think you can do this implicitly.

One approach to address your problem could be to persist the old state before making any changes from the second application and if you found it is failed, you can restore the old state from the first application. I believe your roll back trigger is generating in the first application here.


love your job and not your company;
...because you never know when your company will stop loving you!
 
 
subject: Two phase commit