This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 166
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!
 
wood burning stoves
 
subject: Two phase commit
 
Similar Threads
Back Up & Restore Database
Creating Database
detecting liveliness of connection
How to implement own TransactionManagment
Retry mechanism..Urgent!