|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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. |
javax.naming.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. |
java.util.List |
popConnectionList()
|
void |
pushConnectionList(java.util.List cl)
|
void |
registerResourceManager(java.lang.String rmName,
javax.transaction.xa.XAResource xares,
java.lang.String info,
java.util.Properties p,
TxResourceManager trm)
|
| Methods inherited from class org.objectweb.jotm.Current |
|---|
actionXAResource, begin, begin, clearThreadTx, commit, forgetTx, getAllRcTx, getAllTx, getAllXaTx, getAllXid, getAppServer, getCurrent, getDefaultRecovery, getDefaultTimeout, getJTM, getPreparedHeuristicXid, getPropagationContext, getStatus, getTotalBegunTransactions, getTotalCommittedTransactions, getTotalCurrentTransactions, getTotalExpiredTransactions, getTotalRolledbackTransactions, getTransaction, getTransactionCounters, getTransactionManager, getTransactionRecovery, getTransactionTimeout, getTxByXid, getUserTransaction, getXATerminator, resetAllTxTotalCounters, resume, rollback, setAppServer, setDefaultRecovery, setDefaultTimeout, setPropagationContext, setRollbackOnly, setTMFactory, setTransactionRecovery, setTransactionTimeout, suspend, transactionRecovery |
| 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 javax.naming.Reference getReference()
throws javax.naming.NamingException
getReference in interface javax.naming.ReferenceablegetReference in class org.objectweb.jotm.Currentjavax.naming.NamingException
public void begin()
throws javax.transaction.NotSupportedException,
javax.transaction.SystemException
begin in interface javax.transaction.TransactionManagerbegin in interface javax.transaction.UserTransactionbegin in class org.objectweb.jotm.Currentjavax.transaction.NotSupportedException - Thrown if the thread is already
associated with a transaction. (nested transaction are not
supported)
javax.transaction.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(java.util.List cl)
public java.util.List popConnectionList()
public boolean nonJotmTransactionContext()
public boolean isRecoveryEnabled()
public void registerResourceManager(java.lang.String rmName,
javax.transaction.xa.XAResource xares,
java.lang.String info,
java.util.Properties p,
TxResourceManager trm)
throws javax.transaction.xa.XAException
javax.transaction.xa.XAException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||