org.objectweb.jonas_ejb.container
Class JStatefulFactory

java.lang.Object
  |
  +--org.objectweb.jonas_ejb.container.JFactory
        |
        +--org.objectweb.jonas_ejb.container.JSessionFactory
              |
              +--org.objectweb.jonas_ejb.container.JStatefulFactory
All Implemented Interfaces:
BeanFactory

public class JStatefulFactory
extends JSessionFactory

This class is a factory for a Session Stateful Bean.


Fields inherited from class org.objectweb.jonas_ejb.container.JSessionFactory
home, isStateful, isSynchro, localhome, sessionList
 
Fields inherited from class org.objectweb.jonas_ejb.container.JFactory
beanclass, bn, cont, dd, ejb10Env, ejbname, JNDICtx, naming, tm, txbeanmanaged
 
Constructor Summary
JStatefulFactory(SessionStatefulDesc dd, JContainer cont, JStatefulPool sfp)
          constructor
 
Method Summary
 JSessionSwitch createNewSession()
          Creates a new Session Stateful callback from createEJB
 JSessionContext getJContext()
          get a new session context must call newInstance (EJB specs) => no pool should be used.
 int getPoolSize()
           
 void postInvoke(RequestCtx rctx)
          postinvoke
 RequestCtx preInvoke(int txa, java.lang.String secu)
          preInvoke for Session beans stateful
 
Methods inherited from class org.objectweb.jonas_ejb.container.JSessionFactory
checkTransaction, createEJB, getHome, getLocalHome, getTimeout, isSessionSynchro, isStateful, reduceCache, removeEJB, setTimeout, stop, sync
 
Methods inherited from class org.objectweb.jonas_ejb.container.JFactory
checkTransactionContainer, getContainer, getCorbaInitialContext, getDeploymentDescriptor, getEjb10Environment, getEJBName, getEnv, getInitialContext, getTransactionManager, init, isTxBeanManaged, postInvokeRemote, preInvokeRemote, resetComponentContext, setComponentContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JStatefulFactory

public JStatefulFactory(SessionStatefulDesc dd,
                        JContainer cont,
                        JStatefulPool sfp)
constructor
Method Detail

getPoolSize

public int getPoolSize()
Overrides:
getPoolSize in class JFactory
Returns:
the Instance pool size for this Ejb

preInvoke

public RequestCtx preInvoke(int txa,
                            java.lang.String secu)
preInvoke for Session beans stateful
Overrides:
preInvoke in class JFactory

postInvoke

public void postInvoke(RequestCtx rctx)
postinvoke
Overrides:
postInvoke in class JFactory

createNewSession

public JSessionSwitch createNewSession()
                                throws java.rmi.RemoteException
Creates a new Session Stateful callback from createEJB
Overrides:
createNewSession in class JSessionFactory

getJContext

public JSessionContext getJContext()
get a new session context must call newInstance (EJB specs) => no pool should be used.
Overrides:
getJContext in class JSessionFactory