public class TransactionImportManager extends Object implements TransactionImportWrapper
| Modifier and Type | Method and Description |
|---|---|
static TransactionImportManager |
getInstance() |
int |
getTransactionRemainingTimeout()
$Return duration before current transaction would timeout.
|
String |
getTxLogLocation() |
javax.resource.spi.XATerminator |
getXATerminator()
$Provides a handle to a
XATerminator instance which is used to import
an external transaction into Java EE TM. |
void |
recreate(Xid xid,
long timeout)
$Recreate a transaction based on the Xid.
|
static void |
registerRecoveryResourceHandler(XAResource xaResource) |
void |
release(Xid xid)
$Release a transaction.
|
public static TransactionImportManager getInstance()
public void recreate(Xid xid, long timeout)
This method imports a transactional context controlled by an external transaction manager.
recreate in interface TransactionImportWrapperxid - the Xid object representing a transaction.public void release(Xid xid)
This call releases transactional context imported by recreate method.
release in interface TransactionImportWrapperxid - the Xid object representing a transaction.public javax.resource.spi.XATerminator getXATerminator()
XATerminator instance which is used to import
an external transaction into Java EE TM.
The XATerminator exports 2PC protocol control to an external root transaction coordinator.
getXATerminator in interface TransactionImportWrapperXATerminator instance.public int getTransactionRemainingTimeout()
throws SystemException
getTransactionRemainingTimeout in interface TransactionImportWrapperSystemException - Thrown if the transaction manager
encounters an unexpected error condition.public String getTxLogLocation()
public static void registerRecoveryResourceHandler(XAResource xaResource)
Copyright © 2005–2018 Oracle Corporation. All rights reserved.