public interface ExtendedTransactionManager
extends javax.transaction.TransactionManager
Modifier and Type | Method and Description |
---|---|
void |
begin(int timeout)
Adds a begin method allowing a timeout to be specified.
|
boolean |
delist(javax.transaction.xa.XAResource xaRes,
int flag)
Delist the resource specified from the current JTA Transaction
associated with the calling thread.
|
boolean |
enlist(javax.transaction.xa.XAResource xaRes,
int recoveryId)
enlist XAResouce object in the current JTA Transaction associated
with current thread.
|
int |
registerResourceInfo(java.lang.String xaResFactoryClassName,
java.io.Serializable xaResInfo)
Register XAResouceFactory and XAResourceInfo with the transaction service
so that it will be logged and can be used in recovery on a server restart.
|
int |
registerResourceInfo(java.lang.String xaResFactoryClassName,
java.io.Serializable xaResInfo,
int priority)
Register XAResouceFactory and XAResourceInfo with the transaction service
so that it will be logged and can be used in recovery on a server restart.
|
void begin(int timeout) throws javax.transaction.NotSupportedException, javax.transaction.SystemException
timeout
- javax.transaction.NotSupportedException
javax.transaction.SystemException
boolean enlist(javax.transaction.xa.XAResource xaRes, int recoveryId) throws javax.transaction.RollbackException, java.lang.IllegalStateException, javax.transaction.SystemException
xaRes
- The XAResource object representing the resource to enlist.recoveryId
- The identifier returned from a call to registerResourceInfo
associating the appropriate xaResFactoryClassName/xaResInfo
necessary for produce a XAResource object.javax.transaction.RollbackException
java.lang.IllegalStateException
javax.transaction.SystemException
boolean delist(javax.transaction.xa.XAResource xaRes, int flag)
xaRes
- The XAResource object representing the resource to delistflag
- One of the values of TMSUCCESS, TMSUSPEND, or TMFAIL.int registerResourceInfo(java.lang.String xaResFactoryClassName, java.io.Serializable xaResInfo)
xaResFactoryClassName
- The class name of XAResourceFactory.xaResInfo
- Information necessary for producing an XAResource object
using XAResourceFactory.int registerResourceInfo(java.lang.String xaResFactoryClassName, java.io.Serializable xaResInfo, int priority)
xaResFactoryClassName
- The class name of XAResourceFactory.xaResInfo
- Information necessary for producing an XAResource object
using XAResourceFactory.priority
- The priority associated with resources for this factory
and xa resource information. Priorities may be assigned
values in the range Integer.MAX_VALUE through Integer.MIN_VALUE
with 0 as the default priority if unassigned. Priority
values will determine the order of prepare and commit
during the completion phase; the higher the priority,
the earlier the resource will be prepared or committed.
Resources with the same priority value may be prepared or
committed in any order. Priority ordering will be maintained
over failures or retries - higher priority resources must
complete before lower priority resources are committed.