The script is
We have two applications A and B, both of which run in separate database transactions (Oracle 9i)
Appendix A - inserts some data into the database, then calls Appendix B Appendix B - inserts some data into the database associated (via foreign keys) with the data A. Returns the "ID" to Appendix A Appendix A - uses the ID to insert additional data including identifier from B
Now, since these are separate transactions, but both rely on data from each other's transactions, we need to make each application between calls. This, of course, is very difficult to roll back if something goes wrong.
How do you approach this problem with minimal code refactoring. Surely this is such a common problem in the world of SOA?
------ Update --------
I could not find anything in Oracle 9i, however Oracle 11g provides DBMS_XA , which does exactly what I was after.
source share