Class GeronimoTransactionManager
- java.lang.Object
-
- org.apache.geronimo.transaction.manager.TransactionManagerImpl
-
- org.apache.geronimo.transaction.manager.GeronimoTransactionManager
-
- All Implemented Interfaces:
EventListener
,javax.resource.spi.XATerminator
,TransactionManager
,TransactionSynchronizationRegistry
,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(Xid xid, long txTimeoutMillis)
void
commit(Xid xid, boolean onePhase)
void
end(Xid xid)
void
forget(Xid xid)
int
prepare(Xid xid)
Xid[]
recover(int flag)
void
rollback(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 XAException
- Throws:
XAException
-
GeronimoTransactionManager
public GeronimoTransactionManager(int defaultTransactionTimeoutSeconds) throws XAException
- Throws:
XAException
-
GeronimoTransactionManager
public GeronimoTransactionManager(int defaultTransactionTimeoutSeconds, TransactionLog transactionLog) throws XAException
- Throws:
XAException
-
GeronimoTransactionManager
public GeronimoTransactionManager(int defaultTransactionTimeoutSeconds, XidFactory xidFactory, TransactionLog transactionLog) throws XAException
- Throws:
XAException
-
-
Method Detail
-
commit
public void commit(Xid xid, boolean onePhase) throws XAException
- Specified by:
commit
in interfacejavax.resource.spi.XATerminator
- Throws:
XAException
- See Also:
XATerminator.commit(javax.transaction.xa.Xid, boolean)
-
forget
public void forget(Xid xid) throws XAException
- Specified by:
forget
in interfacejavax.resource.spi.XATerminator
- Throws:
XAException
- See Also:
XATerminator.forget(javax.transaction.xa.Xid)
-
prepare
public int prepare(Xid xid) throws XAException
- Specified by:
prepare
in interfacejavax.resource.spi.XATerminator
- Throws:
XAException
- See Also:
XATerminator.prepare(javax.transaction.xa.Xid)
-
recover
public Xid[] recover(int flag) throws XAException
- Specified by:
recover
in interfacejavax.resource.spi.XATerminator
- Throws:
XAException
- See Also:
XATerminator.recover(int)
-
rollback
public void rollback(Xid xid) throws XAException
- Specified by:
rollback
in interfacejavax.resource.spi.XATerminator
- Throws:
XAException
- See Also:
XATerminator.rollback(javax.transaction.xa.Xid)
-
begin
public void begin(Xid xid, long txTimeoutMillis) throws XAException, InvalidTransactionException, SystemException, ImportedTransactionActiveException
- Specified by:
begin
in interfaceXAWork
- Throws:
XAException
InvalidTransactionException
SystemException
ImportedTransactionActiveException
-
end
public void end(Xid xid) throws XAException, SystemException
- Specified by:
end
in interfaceXAWork
- Throws:
XAException
SystemException
-
-