When EAServer is running in two-phase commit mode, which is the default for version 5.0 or later, you can enlist XA resources with EAServer Transaction Manager.
 Enlisting XA resources
Enlisting XA resources
To enlist an XA resource into a current EAServer transaction:
Get the instance of Transaction Manager:
javax.transaction.TransactionManager tm = com.sun.jts.jta.TransactionManager.getTransactionManagerImpl();
Get the instance of the transaction:
javax.transaction.Transaction trans = tm.getTransaction();
Register the XA resource with the transaction:
trans.enlistResource(xaresource);
EAServer manages this XA resource with respect to its transaction boundaries.
| Copyright © 2005. Sybase Inc. All rights reserved. |   | |