tyrex.tm

Interface TyrexTransactionManager

public interface TyrexTransactionManager extends TransactionManager

Tyrex extensions for TransactionManager. All Tyrex transaction managers implement this interface, which supports transaction resolving from an Xid, and means to obtain extended transaction status.

Author: Riad Mohammed

Method Summary
abstract voiddelistResource(XAResource xaResource, int flag)
Called to delist a resource from the current thread.
abstract voiddumpCurrentTransaction(PrintWriter writer)
Convenience method.
abstract voiddumpTransactionList(PrintWriter writer)
Convenience method.
abstract voidenlistResource(XAResource xaResource)
Called to enlist a resource with the current thread.
abstract voidenlistResource(XAResource xaResource, XAResourceCallback callback)
Called to enlist a resource with the current thread.
abstract TransactiongetTransaction(Xid xid)
Returns a transaction based on the transaction identifier.
abstract TransactiongetTransaction(String xid)
Returns a transaction based on the transaction identifier.

Method Detail

delistResource

public abstract void delistResource(XAResource xaResource, int flag)
Called to delist a resource from the current thread. If this method is called within an active transaction, the connection will be delisted using the success flag. The connection will not be enlisted in any future transaction associated with the same thread context.

Parameters: xaRes The XA resource flag The delist flag

dumpCurrentTransaction

public abstract void dumpCurrentTransaction(PrintWriter writer)
Convenience method. Dumps information about the transaction associated with the current thread.

Parameters: writer The writer to use

dumpTransactionList

public abstract void dumpTransactionList(PrintWriter writer)
Convenience method. Dumps information about all active transactions created by this transaction manager.

Parameters: writer The writer to use

enlistResource

public abstract void enlistResource(XAResource xaResource)
Called to enlist a resource with the current thread. If this method is called within an active transaction, the connection will be enlisted in that transaction. The connection will be enlisted in any future transaction associated with the same thread context.

Parameters: xaRes The XA resource

Throws: SystemException The resource cannot be enlisted with the current transaction

enlistResource

public abstract void enlistResource(XAResource xaResource, XAResourceCallback callback)
Called to enlist a resource with the current thread. If this method is called within an active transaction, the connection will be enlisted in that transaction. The connection will be enlisted in any future transaction associated with the same thread context.

Parameters: xaRes The XA resource callback The callback (optional)

Throws: SystemException The resource cannot be enlisted with the current transaction

See Also: XAResourceCallback

getTransaction

public abstract Transaction getTransaction(Xid xid)
Returns a transaction based on the transaction identifier.

Parameters: xid The transaction identifier

Returns: The transaction, or null if no such transaction exists

getTransaction

public abstract Transaction getTransaction(String xid)
Returns a transaction based on the transaction identifier.

Parameters: xid The transaction identifier

Returns: The transaction, or null if no such transaction exists

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.