Package org.exolab.castor.persist
Interface XAResourceSource
-
public interface XAResourceSourceA data source that wishes to particiate as an XA resource implements this interface. The source then returns anXAResourceImplwhich controls the transaction of this source through this interface.- Version:
- $Revision: 7088 $ $Date: 2005-06-20 06:01:00 -0600 (Mon, 20 Jun 2005) $
- Author:
- Assaf Arkin
- See Also:
XAResourceImpl
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TransactionContextcreateTransactionContext(javax.transaction.xa.Xid xid)Called byXAResourceImplto produce a new transaction context implementation suitable for this data source.TransactionContextgetTransactionContext()Returns the transaction context associated with this source.voidsetTransactionContext(TransactionContext tx)Sets the transaction context associated with this source.voidxaFailed()Indicate that the resource has failed and should be discarded.
-
-
-
Method Detail
-
getTransactionContext
TransactionContext getTransactionContext()
Returns the transaction context associated with this source.
-
setTransactionContext
void setTransactionContext(TransactionContext tx)
Sets the transaction context associated with this source.
-
xaFailed
void xaFailed()
Indicate that the resource has failed and should be discarded.
-
createTransactionContext
TransactionContext createTransactionContext(javax.transaction.xa.Xid xid)
Called byXAResourceImplto produce a new transaction context implementation suitable for this data source.
-
-