|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas.resource.MySynchro
This class is an implementation of the Synchronization interface, used by a ConnectionManagerImpl instance. The aim of this class is to close a ManagedConnection when a transaction finishes. This class is necessary when the commit or the rollback action is after a connection close.
Constructor Summary | |
MySynchro(ConnectionManagerImpl pCm,
MCInfo pMci)
Constructor for the MySynchro object |
Method Summary | |
void |
afterCompletion(int status)
This method is called by the transaction manager after the transaction is committed or rolled back. |
void |
beforeCompletion()
This method is called by the transaction manager prior to the start of the transaction completion process. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MySynchro(ConnectionManagerImpl pCm, MCInfo pMci)
pCm
- ConnectionManager objectpMci
- ManagedConnection information objectMethod Detail |
public void afterCompletion(int status)
afterCompletion
in interface javax.transaction.Synchronization
status
- The transaction flagpublic void beforeCompletion()
beforeCompletion
in interface javax.transaction.Synchronization
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |