|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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. |
Method Detail |
public void enlist(javax.transaction.xa.Xid xid)
xid
- the xid that was used to enlist the XA resource
(required)public void fail(javax.transaction.xa.Xid xid)
xid
- the xid that was used to enlist the XA resource
(required)enlist(javax.transaction.xa.Xid)
public void boundary(javax.transaction.xa.Xid xid, boolean commit)
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.enlist(javax.transaction.xa.Xid)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |