Public Member Functions | |
TxListener (JEntityFactory bf, Transaction tx) | |
synchronized void | storeInstances () |
synchronized void | addInstance (JEntityContext ec) |
void | beforeCompletion () |
void | afterCompletion (int status) |
Alexei Novakov (fix ConcurrentModification issue)
Definition at line 46 of file TxListener.java.
|
constructor
Definition at line 63 of file TxListener.java. |
|
Add a new Context in the list.
Definition at line 93 of file TxListener.java. Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.registerContext(). |
|
The afterCompletion method is called by the transaction manager after the transaction is committed or rolled back. This method executes without a transaction context.
Definition at line 134 of file TxListener.java. References org.objectweb.jonas_ejb.container.JEntityContext.afterCompletion(), and org.objectweb.jonas_ejb.container.JEntityFactory.removeTxListener(). |
Here is the call graph for this function:
|
This beforeCompletion method is called by the transaction manager prior to the start of the transaction completion process. This method executes in the transaction context of the calling thread. The Bean's state must be stored on the persistent storage before the completion of the transaction. Definition at line 114 of file TxListener.java. References org.objectweb.jonas_ejb.container.JFactory.myClassLoader(), org.objectweb.jonas_ejb.container.JFactory.resetComponentContext(), org.objectweb.jonas_ejb.container.JFactory.setComponentContext(), and org.objectweb.jonas_ejb.container.TxListener.storeInstances(). |
Here is the call graph for this function:
|
Synchronizes all instances on disk. This must be called before every SQL request (finder) or at beforeCompletion(). We must be in the good transaction context here, and with the correct component environment (java:comp). Definition at line 75 of file TxListener.java. Referenced by org.objectweb.jonas_ejb.container.TxListener.beforeCompletion(), and org.objectweb.jonas_ejb.container.JEntityFactory.syncForFind(). |