Methods Summary |
---|
public void | begin(int timeout)
|
public void | checkTransactionExport(boolean isLocal)Perform checks during export of a transaction on a remote call.
|
public void | checkTransactionImport()Perform checks during import of a transaction on a remote call.
This is called from the reply interceptors after a remote call completes.
|
public void | cleanTxnTimeout()
|
public void | componentDestroyed(java.lang.Object instance)This is called by Container to indicate that a component
is being destroyed. All resources registered in the context
should be released
|
public void | delistComponentResources(boolean suspend)This is called by the Container to ask the Transaction
Manager to delist all resources held by a component
The TM finds the component through the InvocationManager
|
public boolean | delistResource(javax.transaction.Transaction tran, com.sun.enterprise.resource.ResourceHandle h, int flag)Delist the resource specified from the transaction
|
public void | ejbDestroyed(ComponentContext context)
|
public void | enlistComponentResources()This is called by the Container to ask the Transaction
Manager to enlist all resources held by a component and
to associate the current Transaction with the current
Invocation
The TM finds the component through the InvocationManager
|
public boolean | enlistResource(javax.transaction.Transaction tran, com.sun.enterprise.resource.ResourceHandle h)Enlist the resource specified with the transaction
|
public void | forceRollback(javax.transaction.Transaction tran)
|
public void | freeze()
|
public java.util.ArrayList | getActiveTransactions()
|
public java.util.List | getExistingResourceList(java.lang.Object instance, ComponentInvocation inv)Returns a list of resource handles held by the component
|
public int | getNumberOfActiveTransactions()
|
public int | getNumberOfTransactionsCommitted()
|
public int | getNumberOfTransactionsRolledBack()
|
public javax.resource.spi.XATerminator | getXATerminator()Provides a handle to a XATerminator instance. The
XATerminator instance could be used by a resource adapter
to flow-in transaction completion and crash recovery calls from an EIS.
This is used by importing transactions via the Connector contract.
|
public boolean | isFrozen()
|
public boolean | isNullTransaction()Return true if a "null transaction context" was received
from the client or if the server's transaction.interoperability
flag is false.
A null tx context indicates that the client had an active
tx but the client container did not support tx interop.
See EJB2.0 spec section 18.5.2.1.
|
public boolean | isTimedOut()Utility for the ejb container to check if the transaction is marked for
rollback because of timeout. This is applicable only for local transactions
as jts transaction will rollback instead of setting the txn for rollback
|
public void | postInvoke(ComponentInvocation curr, ComponentInvocation prev)Called by InvocationManager
|
public void | preInvoke(ComponentInvocation prev)Called by InvocationManager
|
public void | recover(javax.transaction.xa.XAResource[] resourceList)
|
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.
This is used by importing transactions via the Connector contract.
|
public void | registerComponentResource(com.sun.enterprise.resource.ResourceHandle h)
|
public void | registerSynchronization(javax.transaction.Synchronization sync)register a synchronization object with the transaction
associated with the current thread
|
public void | release(javax.transaction.xa.Xid xid)Release a transaction. This call causes the calling thread to be
dissociated from the specified transaction.
This is used by importing transactions via the Connector contract.
|
public void | setDefaultTransactionTimeout(int seconds)
|
public void | setMonitoringEnabled(boolean enabled)
|
public void | unfreeze()
|
public void | unregisterComponentResource(com.sun.enterprise.resource.ResourceHandle h)
|