Inheritance diagram for org.objectweb.jonas_ejb.container.JStatefulSwitch:
Public Member Functions | |
JStatefulSwitch (JStatefulFactory bf, JStatefulPool sfp) throws RemoteException | |
void | pushConnectionList () |
void | popConnectionList () |
void | setConnectionList (List cl) |
void | enlistConnections (Transaction tx) |
void | delistConnections (Transaction tx) |
synchronized void | timeoutExpired (Object arg) |
JSessionContext | getICtx (Transaction tx) |
void | bindICtx (Transaction tx, JStatefulContext bctx) |
void | releaseICtx (Transaction tx) |
void | discardICtx (Transaction tx) |
void | noLongerUsed () |
void | txCompleted () |
boolean | isInTransaction () |
void | setMustCommit (boolean mc) |
void | saveBeanTx () |
Definition at line 53 of file JStatefulSwitch.java.
|
constructor.
Definition at line 86 of file JStatefulSwitch.java. |
|
At each create, bind the Context to the transaction
Definition at line 215 of file JStatefulSwitch.java. References org.objectweb.jonas_ejb.container.JStatefulPool.addContext(), and org.objectweb.jonas_ejb.container.JSessionContext.initSessionContext(). |
Here is the call graph for this function:
|
delist all connections of the list Implements org.objectweb.jonas_ejb.container.JSessionSwitch. Definition at line 149 of file JStatefulSwitch.java. References org.objectweb.jonas_ejb.container.JStatefulSwitch.popConnectionList(). |
Here is the call graph for this function:
|
Discard a context/instance at end of request. A problem occured on this instance and it must be discarded.
Implements org.objectweb.jonas_ejb.container.JSessionSwitch. Definition at line 248 of file JStatefulSwitch.java. References org.objectweb.jonas_ejb.container.JStatefulSwitch.noLongerUsed(), and org.objectweb.jonas_ejb.container.JSessionSwitch.stopTimer(). |
Here is the call graph for this function:
|
enlist all connection of the list Implements org.objectweb.jonas_ejb.container.JSessionSwitch. Definition at line 126 of file JStatefulSwitch.java. References org.objectweb.jonas_ejb.container.JStatefulSwitch.pushConnectionList(). |
Here is the call graph for this function:
|
At each business method, get a BeanContext to run it
Implements org.objectweb.jonas_ejb.container.JSessionSwitch. Definition at line 190 of file JStatefulSwitch.java. References org.objectweb.jonas_ejb.container.JStatefulPool.getContext(). |
Here is the call graph for this function:
|
This is used for remove on stateful session beans only.
Definition at line 309 of file JStatefulSwitch.java. Referenced by org.objectweb.jonas_ejb.container.JStatefulContext.setRemoved(). |
|
This Session is no longer used: - unexport Remote Object - return the Session in the pool Definition at line 264 of file JStatefulSwitch.java. References org.objectweb.jonas_ejb.container.JStatefulPool.removeContext(), org.objectweb.jonas_ejb.container.JSessionFactory.removeEJB(), and org.objectweb.jonas_ejb.container.JRemote.unexportObject(). Referenced by org.objectweb.jonas_ejb.container.JStatefulSwitch.discardICtx(), org.objectweb.jonas_ejb.container.JStatefulSwitch.releaseICtx(), and org.objectweb.jonas_ejb.container.JStatefulSwitch.timeoutExpired(). |
Here is the call graph for this function:
|
save the current connectionList for future use (next preInvoke). Implements org.objectweb.jonas_ejb.container.JSessionSwitch. Definition at line 106 of file JStatefulSwitch.java. References org.objectweb.jonas_ejb.container.JFactory.getTransactionManager(). Referenced by org.objectweb.jonas_ejb.container.JStatefulSwitch.delistConnections(). |
Here is the call graph for this function:
|
Set the connection list associated to the current thread with the list associated to this stateful session. Implements org.objectweb.jonas_ejb.container.JSessionSwitch. Definition at line 96 of file JStatefulSwitch.java. References org.objectweb.jonas_ejb.container.JFactory.getTransactionManager(). Referenced by org.objectweb.jonas_ejb.container.JStatefulSwitch.enlistConnections(). |
Here is the call graph for this function:
|
Release the Context after use.
Implements org.objectweb.jonas_ejb.container.JSessionSwitch. Definition at line 229 of file JStatefulSwitch.java. References org.objectweb.jonas_ejb.container.JSessionContext.isMarkedRemoved(), org.objectweb.jonas_ejb.container.JStatefulSwitch.noLongerUsed(), and org.objectweb.jonas_ejb.container.JSessionSwitch.stopTimer(). |
Here is the call graph for this function:
|
Keep the bean opened transaction for later use in other methods. Stateful session bean may open a transaction and use it in other methods. This is called at postInvoke Implements org.objectweb.jonas_ejb.container.JSessionSwitch. Definition at line 325 of file JStatefulSwitch.java. References org.objectweb.jonas_ejb.container.JFactory.getTransactionManager(), and org.objectweb.jonas_ejb.container.JFactory.isTxBeanManaged(). |
Here is the call graph for this function:
|
Save the Connection List after a create method. Definition at line 116 of file JStatefulSwitch.java. Referenced by org.objectweb.jonas_ejb.container.JStatefulContext.setConnectionList(). |
|
set a flag to remember that the transaction must be committed Implements org.objectweb.jonas_ejb.container.JSessionSwitch. Definition at line 316 of file JStatefulSwitch.java. |
|
The session timeout has expired
Definition at line 161 of file JStatefulSwitch.java. References org.objectweb.jonas_ejb.container.JStatefulSwitch.noLongerUsed(), and org.objectweb.jonas_ejb.container.JStatefulContext.setRemoved(). Referenced by org.objectweb.jonas_ejb.container.JStatefulSwitch.txCompleted(). |
Here is the call graph for this function:
|
End of Transaction Definition at line 297 of file JStatefulSwitch.java. References org.objectweb.jonas_ejb.container.JStatefulSwitch.timeoutExpired(). Referenced by org.objectweb.jonas_ejb.container.JStatefulContext.afterCompletion(). |
Here is the call graph for this function: