Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> 2PC using XAResource interface in J2EE and C++
I have a C++ program (non-CORBA) that manages and uses a pool of connections to multiple Oracle databases. I want the work done in the C++ program to be part of a global transaction started in a J2EE server, and let JTS to coordinate the commit/rollback.
There are many uncertainties on how that could be done. Some of the questions are:
Process 1:
xa_start(XID1)
//do work
xa_end(XID1)
Process 2:
xa_start(XID2)
//do work
xa_end(XID2)
XID1 and XID2 differ only in bqual. When xa_commit(XID1) is called, would the work in both processes be committed, or I would have to call xa_commit(XID2) also?
Appreciate any enlightment!
James Received on Fri Sep 06 2002 - 20:10:45 CDT
![]() |
![]() |