|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jotm.Current org.ow2.jonas.tm.jotm.JOTMTransactionManager
public class JOTMTransactionManager
Wrapper on the JOTM TransactionManager (Current) This is necessary to track the begin() calls and implement the additional methods defined in org.ow2.jonas.tm.TransactionManager.
Constructor Summary | |
---|---|
JOTMTransactionManager()
Constructor for clients (See UserTramsactionFactory) |
|
JOTMTransactionManager(org.objectweb.jotm.TransactionFactory tmfact)
|
Method Summary | |
---|---|
void |
begin()
Creates a new transaction and associate it with the current thread. |
Reference |
getReference()
We want to use our UserTransactionFactory here, that will instanciate a JOTMTransactionManager. |
static JOTMTransactionManager |
getUnique()
|
boolean |
isRecoveryEnabled()
|
boolean |
nonJotmTransactionContext()
|
void |
notifyConnectionClose(Enlistable mce)
A Connection has been closed. |
void |
notifyConnectionError(Enlistable mce)
A Connection has been in error. |
void |
notifyConnectionOpen(Enlistable mce)
A Connection has been opened. |
List |
popConnectionList()
|
void |
pushConnectionList(List cl)
|
void |
registerResourceManager(String rmName,
XAResource xares,
String info,
Properties p,
TxResourceManager trm)
|
Methods inherited from class org.objectweb.jotm.Current |
---|
actionXAResource, associateThreadTx, begin, begin, clearThreadTx, commit, connectionClosed, connectionErrorOccured, connectionOpened, forgetTx, getAllRcTx, getAllTx, getAllXaTx, getAllXid, getCurrent, getDefaultRecovery, getDefaultTimeout, getJTM, getPreparedHeuristicXid, getPropagationContext, getStatus, getTotalBegunTransactions, getTotalCommittedTransactions, getTotalCurrentTransactions, getTotalExpiredTransactions, getTotalRolledbackTransactions, getTransaction, getTransactionCounters, getTransactionManager, getTransactionRecovery, getTxByXid, getXATerminator, popThreadLocalRMEventList, pushThreadLocalRMEventList, resetAllTxTotalCounters, resume, rollback, setDefaultRecovery, setDefaultTimeout, setPropagationContext, setRollbackOnly, setTransactionRecovery, setTransactionTimeout, suspend |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.transaction.TransactionManager |
---|
commit, getStatus, getTransaction, resume, rollback, setRollbackOnly, setTransactionTimeout, suspend |
Constructor Detail |
---|
public JOTMTransactionManager(org.objectweb.jotm.TransactionFactory tmfact)
public JOTMTransactionManager()
Method Detail |
---|
public static JOTMTransactionManager getUnique()
public Reference getReference() throws NamingException
getReference
in interface Referenceable
getReference
in class org.objectweb.jotm.Current
NamingException
public void begin() throws NotSupportedException, SystemException
begin
in interface TransactionManager
begin
in interface UserTransaction
begin
in class org.objectweb.jotm.Current
NotSupportedException
- Thrown if the thread is already
associated with a transaction. (nested transaction are not
supported)
SystemException
- Thrown if the transaction manager
encounters an unexpected error conditionpublic void notifyConnectionOpen(Enlistable mce)
mce
- The Connection to be enlistedpublic void notifyConnectionClose(Enlistable mce)
mce
- The Connection to be enlistedpublic void notifyConnectionError(Enlistable mce)
mce
- The Connection to be enlistedpublic void pushConnectionList(List cl)
public List popConnectionList()
public boolean nonJotmTransactionContext()
public void registerResourceManager(String rmName, XAResource xares, String info, Properties p, TxResourceManager trm) throws XAException
XAException
public boolean isRecoveryEnabled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |