|
|||||||||||
PREV CLASS NEXT CLASS | 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 Tx synchronizations are invoked before the cached connection manager closes any closed connections.
Field Summary | |
protected Synchronization |
ccmSynch
The cached connection manager synchronization |
protected ArrayList |
enlisted
Enlisted |
protected Thread |
enlistingThread
The enlisting thread |
protected Transaction |
tx
The transaction |
protected static org.jboss.tm.TransactionLocal |
txSynchs
The transaction synchronizations |
protected ArrayList |
unenlisted
Unenlisted |
Method Summary | |
void |
afterCompletion(int status)
|
void |
beforeCompletion()
|
protected void |
invokeAfter(Synchronization synch,
int status)
Invoke an afterCompletion |
protected void |
invokeBefore(Synchronization synch)
Invoke a beforeCompletion |
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 Thread enlistingThread
protected ArrayList unenlisted
protected ArrayList enlisted
protected Synchronization ccmSynch
Method Detail |
public static void setTransactionManager(TransactionManager tm)
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 transaction
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |