|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.resource.connectionmanager.TransactionSynchronizer
Organizes transaction synchronization done by JCA.
This class exists to make sure all TxRemover synchronizations are invoked before the cached connection manager closes any closed connections.
Field Summary | |
protected Synchronization (src) |
ccmSynch
The cached connection manager synchronization |
protected Transaction (src) |
tx
The transaction |
protected java.util.ArrayList |
txRemoverSynchs
TxRemover synchronizations |
protected static TransactionLocal (src) |
txSynchs
The transaction synchronizations |
Method Summary | |
void |
afterCompletion(int status)
This method is invoked after the transaction has committed or rolled back. |
void |
beforeCompletion()
This method is invoked before the start of the commit process. |
static Synchronization (src) |
getCCMSynchronization(Transaction (src) tx)
Check whether we have a CCM synchronization |
protected static TransactionSynchronizer (src) |
getRegisteredSynchronizer(Transaction (src) tx)
Get a registered transaction synchronizer. |
protected void |
invokeAfter(Synchronization (src) synch,
int status)
Invoke an afterCompletion |
protected void |
invokeBefore(Synchronization (src) synch)
Invoke a beforeCompletion |
static void |
registerCCMSynchronization(Transaction (src) tx,
Synchronization (src) synch)
Register a new CCM synchronization |
static void |
registerTxRemoverSynchronization(Transaction (src) tx,
Synchronization (src) synch)
Register a new TxRemover synchronization |
static void |
setTransactionManager(TransactionManager (src) tm)
Initialization |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static TransactionLocal (src) txSynchs
protected Transaction (src) tx
protected java.util.ArrayList txRemoverSynchs
protected Synchronization (src) ccmSynch
Method Detail |
public static void setTransactionManager(TransactionManager (src) tm)
public static void registerTxRemoverSynchronization(Transaction (src) tx, Synchronization (src) synch) throws RollbackException (src) , SystemException (src)
tx
- the transactionsynch
- the synchronization
RolledbackException
- if the transaction is already rolled back
SystemException (src)
- for an error in the tranaction manager
RollbackException (src)
public static Synchronization (src) getCCMSynchronization(Transaction (src) tx)
tx
- the transactionpublic static void registerCCMSynchronization(Transaction (src) tx, Synchronization (src) synch) throws RollbackException (src) , SystemException (src)
tx
- the transactionsynch
- the synchronization
RolledbackException
- if the transaction is already rolled back
SystemException (src)
- for an error in the tranaction manager
RollbackException (src)
public void beforeCompletion()
Synchronization (src)
beforeCompletion
in interface Synchronization (src)
public void afterCompletion(int status)
Synchronization (src)
afterCompletion
in interface Synchronization (src)
status
- The status of the completed transaction.protected void invokeBefore(Synchronization (src) synch)
synch
- the synchronizationprotected void invokeAfter(Synchronization (src) synch, int status)
synch
- the synchronizationstatus
- the status of the transactionprotected static TransactionSynchronizer (src) getRegisteredSynchronizer(Transaction (src) tx) throws RollbackException (src) , SystemException (src)
tx
- the transaction
RolledbackException
- if the transaction is already rolled back
SystemException (src)
- for an error in the tranaction manager
RollbackException (src)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |