org.objectweb.jonas_ejb.container.JStatefulSwitch Class Reference

Inherits org.objectweb.jonas_ejb.container.JSessionSwitch.

Inheritance diagram for org.objectweb.jonas_ejb.container.JStatefulSwitch:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas_ejb.container.JStatefulSwitch:

Collaboration graph
[legend]
List of all members.

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 ()

Detailed Description

JStatefulSwitch is the implementation of JSessionSwitch dedicated to the Stateful Session Bean.
Author:
Philippe Durieux

Definition at line 53 of file JStatefulSwitch.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.container.JStatefulSwitch.JStatefulSwitch JStatefulFactory  bf,
JStatefulPool  sfp
throws RemoteException
 

constructor.

Parameters:
bf The Bean Factory
The Session Stateful Pool

Definition at line 86 of file JStatefulSwitch.java.


Member Function Documentation

void org.objectweb.jonas_ejb.container.JStatefulSwitch.bindICtx Transaction  tx,
JStatefulContext  bctx
 

At each create, bind the Context to the transaction

Parameters:
tx The current Transaction Context
bctx The Context to bind

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:

void org.objectweb.jonas_ejb.container.JStatefulSwitch.delistConnections Transaction  tx  )  [virtual]
 

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:

void org.objectweb.jonas_ejb.container.JStatefulSwitch.discardICtx Transaction  tx  )  [virtual]
 

Discard a context/instance at end of request. A problem occured on this instance and it must be discarded.

Parameters:
tx - transaction associated to this context

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:

void org.objectweb.jonas_ejb.container.JStatefulSwitch.enlistConnections Transaction  tx  )  [virtual]
 

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:

JSessionContext org.objectweb.jonas_ejb.container.JStatefulSwitch.getICtx Transaction  tx  )  [virtual]
 

At each business method, get a BeanContext to run it

Parameters:
tx The Transaction Context
Returns:
The Session Context

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:

boolean org.objectweb.jonas_ejb.container.JStatefulSwitch.isInTransaction  ) 
 

This is used for remove on stateful session beans only.

Returns:
True if bean is participating in a client transaction

Definition at line 309 of file JStatefulSwitch.java.

Referenced by org.objectweb.jonas_ejb.container.JStatefulContext.setRemoved().

void org.objectweb.jonas_ejb.container.JStatefulSwitch.noLongerUsed  ) 
 

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:

void org.objectweb.jonas_ejb.container.JStatefulSwitch.popConnectionList  )  [virtual]
 

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:

void org.objectweb.jonas_ejb.container.JStatefulSwitch.pushConnectionList  )  [virtual]
 

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:

void org.objectweb.jonas_ejb.container.JStatefulSwitch.releaseICtx Transaction  tx  )  [virtual]
 

Release the Context after use.

Parameters:
tx The current Transaction Context

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:

void org.objectweb.jonas_ejb.container.JStatefulSwitch.saveBeanTx  )  [virtual]
 

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:

void org.objectweb.jonas_ejb.container.JStatefulSwitch.setConnectionList List  cl  ) 
 

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().

void org.objectweb.jonas_ejb.container.JStatefulSwitch.setMustCommit boolean  mc  )  [virtual]
 

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.

synchronized void org.objectweb.jonas_ejb.container.JStatefulSwitch.timeoutExpired Object  arg  ) 
 

The session timeout has expired

Parameters:
arg Not Used.

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:

void org.objectweb.jonas_ejb.container.JStatefulSwitch.txCompleted  ) 
 

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:


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:10:46 2005 for JOnAS by  doxygen 1.3.9.1