org.compass.core.transaction
Class XATransaction
java.lang.Object
org.compass.core.transaction.AbstractTransaction
org.compass.core.transaction.AbstractJTATransaction
org.compass.core.transaction.XATransaction
- All Implemented Interfaces:
- CompassTransaction, InternalCompassTransaction
public class XATransaction
- extends AbstractJTATransaction
Allows for Compass to particiapte in a two phase commit transaction using
JTA.
Enlists an XAResource Compass implementation
with a current JTA Transaction.
Transaction management is done by XATransactionFactory
so there is no need to implement suspend and resume (works the same way
JTASyncTransaction does).
- Author:
- kimchy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XATransaction
public XATransaction(UserTransaction ut,
TransactionFactory transactionFactory)
doBindToTransaction
protected void doBindToTransaction(Transaction tx,
InternalCompassSession session,
boolean newTransaction)
throws Exception
- Specified by:
doBindToTransaction in class AbstractJTATransaction
- Throws:
Exception
Copyright (c) 2004-2008 The Compass Project.