Package com.sun.xml.ws.tx.at.common
Interface TransactionImportWrapper
- All Known Implementing Classes:
TransactionImportManager
public interface TransactionImportWrapper
Duplicates GF Transaction Manager extensions interface
TransactionImport
that support transaction inflow w/o resource adapter.-
Method Summary
Modifier and TypeMethodDescriptionintReturn duration before current transaction would timeout.javax.resource.spi.XATerminatorProvides a handle to aXATerminatorinstance which is used to import an external transaction into Java EE TM.voidRecreate a transaction based on the Xid.voidRelease a transaction.
-
Method Details
-
recreate
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.
- Parameters:
xid- the Xid object representing a transaction.
-
release
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.
- Parameters:
xid- the Xid object representing a transaction.
-
getXATerminator
javax.resource.spi.XATerminator getXATerminator()Provides a handle to aXATerminatorinstance which is used to import an external transaction into Java EE TM.The XATerminator exports 2PC protocol control to an external root transaction coordinator.
- Returns:
- a
XATerminatorinstance.
-
getTransactionRemainingTimeout
int getTransactionRemainingTimeout() throws javax.transaction.SystemExceptionReturn duration before current transaction would timeout.- Returns:
- Returns the duration in seconds before current transaction would timeout. Returns zero if transaction has no timeout set or if any exceptions occured while looking up remaining transaction timeout. Returns negative value if transaction already timed out.
- Throws:
IllegalStateException- Thrown if the current thread is not associated with a transaction.javax.transaction.SystemException- Thrown if the transaction manager encounters an unexpected error condition.
-