org.objectweb.jonas_ejb.container.JSessionFactory Class Reference

Inherits org.objectweb.jonas_ejb.container.JFactory.

Inherited by org.objectweb.jonas_ejb.container.JStatefulFactory, and org.objectweb.jonas_ejb.container.JStatelessFactory.

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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JSessionFactory (SessionDesc dd, JContainer cont)
void stop ()
void sync ()
JHome getHome ()
JLocalHome getLocalHome ()
synchronized JSessionSwitch createEJB () throws RemoteException
synchronized void removeEJB (JSessionSwitch bs)
void checkTransaction (RequestCtx rctx)
boolean isSessionSynchro ()
int getTimeout ()
void setTimeout (int t)
boolean isStateful ()
abstract JSessionContext getJContext (JSessionSwitch ss)

Detailed Description

This class is a factory for a Session Bean. It is responsible for - managing Home and LocalHome. - keeping the JNDI context for this component (java:comp/env)
Author:
Philippe Durieux

Definition at line 45 of file JSessionFactory.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.container.JSessionFactory.JSessionFactory SessionDesc  dd,
JContainer  cont
 

constructor

Parameters:
dd The Session Deployment Descriptor
cont The Container where the bean is defined.

Definition at line 66 of file JSessionFactory.java.

References org.objectweb.jonas_ejb.container.JContainer.getClassLoader(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getFullWrpHomeName(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getFullWrpLocalHomeName(), org.objectweb.jonas_ejb.deployment.api.SessionDesc.getSessionTimeout(), org.objectweb.jonas_ejb.deployment.api.SessionDesc.isBeanManagedTransaction(), org.objectweb.jonas_ejb.container.JLocalHome.register(), and org.objectweb.jonas_ejb.container.JHome.register().

Here is the call graph for this function:


Member Function Documentation

void org.objectweb.jonas_ejb.container.JSessionFactory.checkTransaction RequestCtx  rctx  )  [virtual]
 

Session beans can be container managed or bean managed transaction Session home don't check transactional context.

Parameters:
rctx The Request Context

Implements org.objectweb.jonas_ejb.container.JFactory.

Definition at line 235 of file JSessionFactory.java.

References org.objectweb.jonas_ejb.container.JFactory.checkTransactionContainer(), and org.objectweb.jonas_ejb.container.RequestCtx.clientTx.

Here is the call graph for this function:

synchronized JSessionSwitch org.objectweb.jonas_ejb.container.JSessionFactory.createEJB  )  throws RemoteException
 

Create a new Session Find one in the pool, or create a new object.

Returns:
a SessionSwitch

Definition at line 184 of file JSessionFactory.java.

References org.objectweb.jonas_ejb.container.JRemote.exportObject(), org.objectweb.jonas_ejb.container.JSessionSwitch.getRemote(), and org.objectweb.jonas_ejb.container.JSessionSwitch.startTimer().

Here is the call graph for this function:

JHome org.objectweb.jonas_ejb.container.JSessionFactory.getHome  ) 
 

Returns:
the home if exist

Implements org.objectweb.jonas_ejb.container.BeanFactory.

Definition at line 165 of file JSessionFactory.java.

Referenced by org.objectweb.jonas_ejb.container.JSessionContext.JSessionContext(), and org.objectweb.jonas_ejb.container.JSessionSwitch.JSessionSwitch().

abstract JSessionContext org.objectweb.jonas_ejb.container.JSessionFactory.getJContext JSessionSwitch  ss  )  [pure virtual]
 

Returns:
a JSessionContext

Implemented in org.objectweb.jonas_ejb.container.JStatefulFactory, and org.objectweb.jonas_ejb.container.JStatelessFactory.

JLocalHome org.objectweb.jonas_ejb.container.JSessionFactory.getLocalHome  ) 
 

Returns:
the local home if exist

Implements org.objectweb.jonas_ejb.container.BeanFactory.

Definition at line 172 of file JSessionFactory.java.

Referenced by org.objectweb.jonas_ejb.container.JSessionLocal.getEJBLocalHome(), org.objectweb.jonas_ejb.container.JSessionContext.JSessionContext(), and org.objectweb.jonas_ejb.container.JSessionSwitch.JSessionSwitch().

int org.objectweb.jonas_ejb.container.JSessionFactory.getTimeout  ) 
 

Returns:
the current timeout value in seconds for Jmx

Definition at line 258 of file JSessionFactory.java.

boolean org.objectweb.jonas_ejb.container.JSessionFactory.isSessionSynchro  ) 
 

Returns:
True if this Session implements SessionSynchronization

Definition at line 251 of file JSessionFactory.java.

boolean org.objectweb.jonas_ejb.container.JSessionFactory.isStateful  ) 
 

Returns:
true if this Session is Stateful. Will be used internally by EJBObject or EJBLocalObject because they are common to both types.

Definition at line 276 of file JSessionFactory.java.

synchronized void org.objectweb.jonas_ejb.container.JSessionFactory.removeEJB JSessionSwitch  bs  ) 
 

remove a Session. This may be called also on timeout. put it back in the pool for later use.

Parameters:
bs The Bean Session Switch to put back in the pool.

Definition at line 219 of file JSessionFactory.java.

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

void org.objectweb.jonas_ejb.container.JSessionFactory.setTimeout int  t  ) 
 

set the current timeout value for Jmx

Parameters:
timeout in seconds

Definition at line 266 of file JSessionFactory.java.

void org.objectweb.jonas_ejb.container.JSessionFactory.stop  ) 
 

stop this EJB. Mainly unregister it in JNDI.

Implements org.objectweb.jonas_ejb.container.BeanFactory.

Definition at line 143 of file JSessionFactory.java.

References org.objectweb.jonas_ejb.container.JLocalHome.unregister(), and org.objectweb.jonas_ejb.container.JHome.unregister().

Here is the call graph for this function:

void org.objectweb.jonas_ejb.container.JSessionFactory.sync  ) 
 

synchronize bean instances if needed

Implements org.objectweb.jonas_ejb.container.BeanFactory.

Definition at line 159 of file JSessionFactory.java.


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