tyrex.tm

Interface XAResourceCallback

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
voidboundary(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.
voidenlist(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.
voidfail(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.

Method Detail

boundary

public void boundary(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: XAResourceCallback

enlist

public void enlist(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(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: XAResourceCallback

Original code is Copyright (c) 1999-2001, Intalio, Inc. All Rights Reserved. Contributions by MetaBoss team are Copyright (c) 2003-2005, Softaris Pty. Ltd. All Rights Reserved.