org.objectweb.jonas_ejb.container.JSessionSwitch Class Reference

Inherited by org.objectweb.jonas_ejb.container.JStatefulSwitch, and org.objectweb.jonas_ejb.container.JStatelessSwitch.

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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JSessionSwitch (JSessionFactory bf) throws RemoteException
JSessionLocal getLocal ()
JSessionRemote getRemote ()
JSessionFactory getBeanFactory ()
void startTimer (int timeout)
void stopTimer ()

Detailed Description

JSessionSwitch holds all the code that is common to EJBObject and EJBLocalObject for session beans. It mainly keep a reference on the SessionContext and is used to manage the timeout for the session. This class has 2 subclasses, depending if session is stateless or stateful.
Author:
Philippe Durieux

Definition at line 45 of file JSessionSwitch.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.container.JSessionSwitch.JSessionSwitch JSessionFactory  bf  )  throws RemoteException
 

constructor. a new object is build when the pool managed by JSessionFactory becomes empty.

Parameters:
bf The Bean Factory

Definition at line 60 of file JSessionSwitch.java.

References org.objectweb.jonas_ejb.container.JSessionFactory.getHome(), org.objectweb.jonas_ejb.container.JSessionFactory.getLocalHome(), org.objectweb.jonas_ejb.container.JSessionLocal.setSessionSwitch(), and org.objectweb.jonas_ejb.container.JSessionRemote.setSessionSwitch().

Here is the call graph for this function:


Member Function Documentation

JSessionFactory org.objectweb.jonas_ejb.container.JSessionSwitch.getBeanFactory  ) 
 

Returns:
the BeanFactory

Definition at line 94 of file JSessionSwitch.java.

Referenced by org.objectweb.jonas_ejb.container.JSessionLocal.isIdentical().

JSessionLocal org.objectweb.jonas_ejb.container.JSessionSwitch.getLocal  ) 
 

Returns:
the underlaying EJBLocalObject

Definition at line 80 of file JSessionSwitch.java.

Referenced by org.objectweb.jonas_ejb.container.JSessionContext.getEJBLocalObject().

JSessionRemote org.objectweb.jonas_ejb.container.JSessionSwitch.getRemote  ) 
 

Returns:
the underlaying EJBObject

Definition at line 87 of file JSessionSwitch.java.

Referenced by org.objectweb.jonas_ejb.container.JSessionFactory.createEJB(), org.objectweb.jonas_ejb.container.JSessionContext.getEJBObject(), and org.objectweb.jonas_ejb.container.JStatelessFactory.notifyTimeout().

void org.objectweb.jonas_ejb.container.JSessionSwitch.startTimer int  timeout  ) 
 

Start a timer for this Session.

Parameters:
timeout nb of milliseconds max this Session should live.

Definition at line 102 of file JSessionSwitch.java.

Referenced by org.objectweb.jonas_ejb.container.JSessionFactory.createEJB().

void org.objectweb.jonas_ejb.container.JSessionSwitch.stopTimer  ) 
 

Stop the Timer associated to the Session

Definition at line 110 of file JSessionSwitch.java.

Referenced by org.objectweb.jonas_ejb.container.JStatelessSwitch.discardICtx(), org.objectweb.jonas_ejb.container.JStatefulSwitch.discardICtx(), org.objectweb.jonas_ejb.container.JStatelessSwitch.releaseICtx(), and org.objectweb.jonas_ejb.container.JStatefulSwitch.releaseICtx().


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