com.sun.xml.ws.tx.common
Class TransactionImportManager

java.lang.Object
  extended by com.sun.xml.ws.tx.common.TransactionImportManager
All Implemented Interfaces:
com.sun.enterprise.transaction.TransactionImport

public class TransactionImportManager
extends java.lang.Object
implements com.sun.enterprise.transaction.TransactionImport

Access Transaction Inflow Contract from Java Connector 1.5 API. Assumption is the underlying TransactionManager is implementing this interface. Separate this from TransactionManagerImpl since this provides mostly service side assistance. Assists in supporting application client and standalone client to separate from more commonly used methods in TransactionManagerImpl.


Method Summary
static com.sun.enterprise.transaction.TransactionImport getInstance()
           
 int getTransactionRemainingTimeout()
          Returns in seconds duration till current transaction times out.
 javax.resource.spi.XATerminator getXATerminator()
          Used to import an external transaction into Java EE TM.
 void recreate(javax.transaction.xa.Xid xid, long timeout)
          Recreate a transaction based on the Xid.
 void release(javax.transaction.xa.Xid xid)
          Release a transaction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static com.sun.enterprise.transaction.TransactionImport getInstance()

recreate

public void recreate(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.

Specified by:
recreate in interface com.sun.enterprise.transaction.TransactionImport
Parameters:
xid - the Xid object representing a transaction.

release

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

Specified by:
release in interface com.sun.enterprise.transaction.TransactionImport
Parameters:
xid - the Xid object representing a transaction.

getXATerminator

public javax.resource.spi.XATerminator getXATerminator()
Used to import an external transaction into Java EE TM.

Specified by:
getXATerminator in interface com.sun.enterprise.transaction.TransactionImport

getTransactionRemainingTimeout

public int getTransactionRemainingTimeout()
                                   throws javax.transaction.SystemException
Returns in seconds duration till current transaction times out. Returns negative value if transaction has already timedout. Returns 0 if there is no timeout. Returns 0 if any exceptions occur looking up remaining transaction timeout.

Specified by:
getTransactionRemainingTimeout in interface com.sun.enterprise.transaction.TransactionImport
Throws:
javax.transaction.SystemException