|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 |
ccmSynch
The cached connection manager synchronization |
protected Transaction |
tx
The transaction |
protected ArrayList |
txRemoverSynchs
TxRemover synchronizations |
protected static org.jboss.tm.TransactionLocal |
txSynchs
The transaction synchronizations |
Method Summary | |
void |
afterCompletion(int status)
|
void |
beforeCompletion()
|
static Synchronization |
getCCMSynchronization(Transaction tx)
Check whether we have a CCM synchronization |
protected static TransactionSynchronizer |
getRegisteredSynchronizer(Transaction tx)
Get a registered transaction synchronizer. |
protected void |
invokeAfter(Synchronization synch,
int status)
Invoke an afterCompletion |
protected void |
invokeBefore(Synchronization synch)
Invoke a beforeCompletion |
static void |
registerCCMSynchronization(Transaction tx,
Synchronization synch)
Register a new CCM synchronization |
static void |
registerTxRemoverSynchronization(Transaction tx,
Synchronization synch)
Register a new TxRemover synchronization |
static void |
setTransactionManager(TransactionManager tm)
Initialization |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.jboss.tm.TransactionLocal txSynchs
protected Transaction tx
protected ArrayList txRemoverSynchs
protected Synchronization ccmSynch
Method Detail |
public static void setTransactionManager(TransactionManager tm)
public static void registerTxRemoverSynchronization(Transaction tx, Synchronization synch) throws RollbackException, SystemException
tx
- the transactionsynch
- the synchronization
RolledbackException
- if the transaction is already rolled back
SystemException
- for an error in the tranaction manager
RollbackException
public static Synchronization getCCMSynchronization(Transaction tx)
tx
- the transactionpublic static void registerCCMSynchronization(Transaction tx, Synchronization synch) throws RollbackException, SystemException
tx
- the transactionsynch
- the synchronization
RolledbackException
- if the transaction is already rolled back
SystemException
- for an error in the tranaction manager
RollbackException
public void beforeCompletion()
beforeCompletion
in interface Synchronization
public void afterCompletion(int status)
afterCompletion
in interface Synchronization
protected void invokeBefore(Synchronization synch)
synch
- the synchronizationprotected void invokeAfter(Synchronization synch, int status)
synch
- the synchronizationstatus
- the status of the transactionprotected static TransactionSynchronizer getRegisteredSynchronizer(Transaction tx) throws RollbackException, SystemException
tx
- the transaction
RolledbackException
- if the transaction is already rolled back
SystemException
- for an error in the tranaction manager
RollbackException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |