org.objectweb.jonas_ejb.container.JStatefulFactory Class Reference

Inherits org.objectweb.jonas_ejb.container.JSessionFactory.

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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JStatefulFactory (SessionStatefulDesc dd, JContainer cont, JStatefulPool sfp)
int getPoolSize ()
void reduceCache ()
void initInstancePool ()
RequestCtx preInvoke (int txa)
void checkSecurity (EJBInvocation ejbInv)
void postInvoke (RequestCtx rctx)
TimerService getTimerService ()
JSessionSwitch createNewSession () throws RemoteException
JSessionContext getJContext (JSessionSwitch ss)

Detailed Description

This class is a factory for a Session Stateful Bean.
Author:
Philippe Durieux

Definition at line 44 of file JStatefulFactory.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.container.JStatefulFactory.JStatefulFactory SessionStatefulDesc  dd,
JContainer  cont,
JStatefulPool  sfp
 

constructor

Parameters:
dd Bean Deployment Descriptor
cont Container where the bean is defined
sfp Pool des sessions stateful

Definition at line 54 of file JStatefulFactory.java.


Member Function Documentation

void org.objectweb.jonas_ejb.container.JStatefulFactory.checkSecurity EJBInvocation  ejbInv  ) 
 

Check if the access to the bean is authorized

Parameters:
ejbInv object containing security signature of the method, args of method, etc

Reimplemented from org.objectweb.jonas_ejb.container.JFactory.

Definition at line 106 of file JStatefulFactory.java.

JSessionSwitch org.objectweb.jonas_ejb.container.JStatefulFactory.createNewSession  )  throws RemoteException [virtual]
 

Creates a new Session Stateful called back from createEJB

Returns:
The Session Switch object

Implements org.objectweb.jonas_ejb.container.JSessionFactory.

Definition at line 137 of file JStatefulFactory.java.

JSessionContext org.objectweb.jonas_ejb.container.JStatefulFactory.getJContext JSessionSwitch  ss  )  [virtual]
 

get a new session context must call newInstance (EJB specs) => no pool should be used.

Returns:
a new Session Context

Implements org.objectweb.jonas_ejb.container.JSessionFactory.

Definition at line 148 of file JStatefulFactory.java.

int org.objectweb.jonas_ejb.container.JStatefulFactory.getPoolSize  )  [virtual]
 

Returns:
the Instance pool size for this Ejb

Implements org.objectweb.jonas_ejb.container.JFactory.

Definition at line 69 of file JStatefulFactory.java.

TimerService org.objectweb.jonas_ejb.container.JStatefulFactory.getTimerService  )  [virtual]
 

Obtains the TimerService associated for this Bean

Returns:
a JTimerService instance.

Implements org.objectweb.jonas_ejb.container.JFactory.

Definition at line 129 of file JStatefulFactory.java.

void org.objectweb.jonas_ejb.container.JStatefulFactory.initInstancePool  )  [virtual]
 

No pool of instances for stateful session beans

Implements org.objectweb.jonas_ejb.container.JFactory.

Definition at line 82 of file JStatefulFactory.java.

void org.objectweb.jonas_ejb.container.JStatefulFactory.postInvoke RequestCtx  rctx  ) 
 

postinvoke

Parameters:
rctx The RequestCtx that was returned at preInvoke()
Exceptions:
EJBException 

Reimplemented from org.objectweb.jonas_ejb.container.JFactory.

Definition at line 116 of file JStatefulFactory.java.

RequestCtx org.objectweb.jonas_ejb.container.JStatefulFactory.preInvoke int  txa  ) 
 

preInvoke for Session beans stateful

Parameters:
txa Transaction Attribute (Supports, Required, ...)
Returns:
A RequestCtx object
Exceptions:
EJBException 

Reimplemented from org.objectweb.jonas_ejb.container.JFactory.

Definition at line 95 of file JStatefulFactory.java.

void org.objectweb.jonas_ejb.container.JStatefulFactory.reduceCache  ) 
 

Reduce number of instances in memory

Implements org.objectweb.jonas_ejb.container.BeanFactory.

Definition at line 76 of file JStatefulFactory.java.


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