|
||||||||||
| 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. |
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, 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 Reference getReference()
throws NamingException
getReference in interface ReferenceablegetReference in class org.objectweb.jotm.CurrentNamingException
public void begin()
throws NotSupportedException,
SystemException
begin in interface TransactionManagerbegin in interface UserTransactionbegin in class org.objectweb.jotm.CurrentNotSupportedException - 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 boolean isRecoveryEnabled()
public void registerResourceManager(String rmName,
XAResource xares,
String info,
Properties p,
TxResourceManager trm)
throws XAException
XAException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||