Package org.exolab.castor.persist
Interface XAResourceSource
public interface XAResourceSource
A data source that wishes to particiate as an XA resource
implements this interface. The source then returns an
XAResourceImpl
which 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:
-
Method Summary
Modifier and TypeMethodDescriptionCalled byXAResourceImpl
to produce a new transaction context implementation suitable for this data source.Returns the transaction context associated with this source.void
Sets the transaction context associated with this source.void
xaFailed()
Indicate that the resource has failed and should be discarded.
-
Method Details
-
getTransactionContext
TransactionContext getTransactionContext()Returns the transaction context associated with this source. -
setTransactionContext
Sets the transaction context associated with this source. -
xaFailed
void xaFailed()Indicate that the resource has failed and should be discarded. -
createTransactionContext
Called byXAResourceImpl
to produce a new transaction context implementation suitable for this data source.
-