This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.
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!