tyrex.tm
Interface XAResourceCallback
- All Known Implementing Classes:
- PoolEntry
- public interface XAResourceCallback
This interface defines methods that inform when the XA resource
associated with this callback has been enlisted in a transaction,
i.e. javax.transaction.XA.XAResource.start(javax.transaction.XA.XAResource.TMSTART)
has been called, delisted from the transaction, i.e.
javax.transaction.XA.XAResource.end(javax.transaction.XA.XAResource.TMSUCCESS
or javax.transaction.XA.XAResource.TMFAIL) has been called,
committed/rolled back, i.e.javax.transaction.XA.XAResource.commit()
or javax.transaction.XA.XAResource.rollback(). It is assumed that
a XAResourceCallback is associated with only one XA Resource.
- Author:
- Riad Mohammed
Method Summary |
void |
boundary(javax.transaction.xa.Xid xid,
boolean commit)
Called when the XA resource associated with this callback
has been committed/rolledback in a transaction,i.e. |
void |
enlist(javax.transaction.xa.Xid xid)
Called when the XA resource associated with this callback
has been enlisted in a transaction,i.e. |
void |
fail(javax.transaction.xa.Xid xid)
Called when the XA resource associated with this callback
has been delisted from a transaction,i.e. |
enlist
public void enlist(javax.transaction.xa.Xid xid)
- Called when the XA resource associated with this callback
has been enlisted in a transaction,i.e.
javax.transaction.XA.XAResource.start(javax.transaction.XA.XAResource.TMNOFLAGS)
has been called.
- Parameters:
xid
- the xid that was used to enlist the XA resource
(required)
fail
public void fail(javax.transaction.xa.Xid xid)
- Called when the XA resource associated with this callback
has been delisted from a transaction,i.e.
javax.transaction.XA.XAResource.end(javax.transaction.XA.XAResource.TMFAIL)
has been called.
- Parameters:
xid
- the xid that was used to enlist the XA resource
(required)- See Also:
enlist(javax.transaction.xa.Xid)
boundary
public void boundary(javax.transaction.xa.Xid xid,
boolean commit)
- Called when the XA resource associated with this callback
has been committed/rolledback in a transaction,i.e.
javax.transaction.XA.XAResource.commit() or
javax.transaction.XA.XAResource.rollback()
has been called.
- Parameters:
xid
- the xid that was used to enlist the XA resource
(required)commit
- True if the XA resource has been committed.
False if the XA resource has been rolled back.- See Also:
enlist(javax.transaction.xa.Xid)
Intalio Inc. (C) 1999-2001. All rights reserved.