org.objectweb.jonas_ejb.container
Class JStatelessFactory

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

public class JStatelessFactory
extends JSessionFactory

This class is a factory for a Session Stateless Bean.


Field Summary
protected  java.util.List bctxlist
           
protected  int instanceCount
           
 
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
JStatelessFactory(SessionStatelessDesc dd, JContainer cont)
          constructor
 
Method Summary
 JSessionSwitch createNewSession()
          Creates a new Session Stateless
 JSessionContext getJContext()
          Returns a SessionContext for Stateless Session Bean
 int getPoolSize()
           
 void releaseJContext(JContext ctx)
          Called after each method call
 
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
checkJonasVersion, checkTransactionContainer, getContainer, getCorbaInitialContext, getDeploymentDescriptor, getEjb10Environment, getEJBName, getEnv, getInitialContext, getTransactionManager, init, isTxBeanManaged, postInvoke, postInvokeRemote, preInvoke, preInvokeRemote, resetComponentContext, setComponentContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bctxlist

protected java.util.List bctxlist

instanceCount

protected int instanceCount
Constructor Detail

JStatelessFactory

public JStatelessFactory(SessionStatelessDesc dd,
                         JContainer cont)
constructor
Method Detail

getPoolSize

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

createNewSession

public JSessionSwitch createNewSession()
                                throws java.rmi.RemoteException
Creates a new Session Stateless
Overrides:
createNewSession in class JSessionFactory

getJContext

public JSessionContext getJContext()
Returns a SessionContext for Stateless Session Bean
Overrides:
getJContext in class JSessionFactory

releaseJContext

public void releaseJContext(JContext ctx)
Called after each method call