FileDocCategorySizeDatePackage
TransactionImport.javaAPI DocGlassfish v2 API3915Thu Jun 28 07:12:26 BST 2007com.sun.enterprise.transaction

TransactionImport

public interface TransactionImport
Transaction Manager extensions to support transaction inflow w/o resource adapter.

Fields Summary
Constructors Summary
Methods Summary
public intgetTransactionRemainingTimeout()
Return duration before current transaction would timeout.

return
Returns the duration in seconds before current transaction would timeout. Returns zero if transaction has no timeout set and returns negative value if transaction already timed out.
exception
IllegalStateException Thrown if the current thread is not associated with a transaction.
exception
SystemException Thrown if the transaction manager encounters an unexpected error condition.

public javax.resource.spi.XATerminatorgetXATerminator()
Provides a handle to a XATerminator instance.

The XATerminator exports 2PC protocol control to an external root transaction coordinator.

return
a XATerminator instance.

public voidrecreate(javax.transaction.xa.Xid xid, long timeout)
Recreate a transaction based on the Xid. This call causes the calling thread to be associated with the specified transaction.

This method imports a transactional context controlled by an external transaction manager.

param
xid the Xid object representing a transaction.

public voidrelease(javax.transaction.xa.Xid xid)
Release a transaction. This call causes the calling thread to be dissociated from the specified transaction.

This call releases transactional context imported by recreate method.

param
xid the Xid object representing a transaction.