Class GeronimoTransactionManager
- java.lang.Object
-
- org.apache.geronimo.transaction.manager.TransactionManagerImpl
-
- org.apache.geronimo.transaction.manager.GeronimoTransactionManager
-
- All Implemented Interfaces:
java.util.EventListener
,javax.resource.spi.XATerminator
,javax.transaction.TransactionManager
,javax.transaction.TransactionSynchronizationRegistry
,javax.transaction.UserTransaction
,MonitorableTransactionManager
,RecoverableTransactionManager
,XAWork
,XidImporter
public class GeronimoTransactionManager extends TransactionManagerImpl implements javax.resource.spi.XATerminator, XAWork
Adds implementations of XATerminator and XAWork interfaces to basic TransactionManagerImpl
-
-
Constructor Summary
Constructors Constructor Description GeronimoTransactionManager()
GeronimoTransactionManager(int defaultTransactionTimeoutSeconds)
GeronimoTransactionManager(int defaultTransactionTimeoutSeconds, TransactionLog transactionLog)
GeronimoTransactionManager(int defaultTransactionTimeoutSeconds, XidFactory xidFactory, TransactionLog transactionLog)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
begin(javax.transaction.xa.Xid xid, long txTimeoutMillis)
void
commit(javax.transaction.xa.Xid xid, boolean onePhase)
void
end(javax.transaction.xa.Xid xid)
void
forget(javax.transaction.xa.Xid xid)
int
prepare(javax.transaction.xa.Xid xid)
javax.transaction.xa.Xid[]
recover(int flag)
void
rollback(javax.transaction.xa.Xid xid)
-
Methods inherited from class org.apache.geronimo.transaction.manager.TransactionManagerImpl
addTransactionAssociationListener, begin, begin, commit, commit, forget, getActiveCount, getExternalXids, getResource, getRollbackOnly, getStatus, getTotalCommits, getTotalRollbacks, getTransaction, getTransactionKey, getTransactionStatus, importXid, prepare, putResource, recoveryError, registerInterposedSynchronization, registerNamedXAResourceFactory, removeTransactionAssociationListener, resetStatistics, resume, rollback, rollback, setRollbackOnly, setTransactionTimeout, suspend, unregisterNamedXAResourceFactory
-
-
-
-
Constructor Detail
-
GeronimoTransactionManager
public GeronimoTransactionManager() throws javax.transaction.xa.XAException
- Throws:
javax.transaction.xa.XAException
-
GeronimoTransactionManager
public GeronimoTransactionManager(int defaultTransactionTimeoutSeconds) throws javax.transaction.xa.XAException
- Throws:
javax.transaction.xa.XAException
-
GeronimoTransactionManager
public GeronimoTransactionManager(int defaultTransactionTimeoutSeconds, TransactionLog transactionLog) throws javax.transaction.xa.XAException
- Throws:
javax.transaction.xa.XAException
-
GeronimoTransactionManager
public GeronimoTransactionManager(int defaultTransactionTimeoutSeconds, XidFactory xidFactory, TransactionLog transactionLog) throws javax.transaction.xa.XAException
- Throws:
javax.transaction.xa.XAException
-
-
Method Detail
-
commit
public void commit(javax.transaction.xa.Xid xid, boolean onePhase) throws javax.transaction.xa.XAException
- Specified by:
commit
in interfacejavax.resource.spi.XATerminator
- Throws:
javax.transaction.xa.XAException
- See Also:
XATerminator.commit(javax.transaction.xa.Xid, boolean)
-
forget
public void forget(javax.transaction.xa.Xid xid) throws javax.transaction.xa.XAException
- Specified by:
forget
in interfacejavax.resource.spi.XATerminator
- Throws:
javax.transaction.xa.XAException
- See Also:
XATerminator.forget(javax.transaction.xa.Xid)
-
prepare
public int prepare(javax.transaction.xa.Xid xid) throws javax.transaction.xa.XAException
- Specified by:
prepare
in interfacejavax.resource.spi.XATerminator
- Throws:
javax.transaction.xa.XAException
- See Also:
XATerminator.prepare(javax.transaction.xa.Xid)
-
recover
public javax.transaction.xa.Xid[] recover(int flag) throws javax.transaction.xa.XAException
- Specified by:
recover
in interfacejavax.resource.spi.XATerminator
- Throws:
javax.transaction.xa.XAException
- See Also:
XATerminator.recover(int)
-
rollback
public void rollback(javax.transaction.xa.Xid xid) throws javax.transaction.xa.XAException
- Specified by:
rollback
in interfacejavax.resource.spi.XATerminator
- Throws:
javax.transaction.xa.XAException
- See Also:
XATerminator.rollback(javax.transaction.xa.Xid)
-
begin
public void begin(javax.transaction.xa.Xid xid, long txTimeoutMillis) throws javax.transaction.xa.XAException, javax.transaction.InvalidTransactionException, javax.transaction.SystemException, ImportedTransactionActiveException
- Specified by:
begin
in interfaceXAWork
- Throws:
javax.transaction.xa.XAException
javax.transaction.InvalidTransactionException
javax.transaction.SystemException
ImportedTransactionActiveException
-
-