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.
- Author:
- Philippe Durieux
Methods inherited from class org.objectweb.jonas_ejb.container.JSessionFactory |
checkTransaction, createEJB, getHome, getLocalHome, getTimeout, isSessionSynchro, isStateful, removeEJB, setTimeout, stop, sync |
Methods inherited from class org.objectweb.jonas_ejb.container.JFactory |
checkJonasVersion, checkTransactionContainer, getContainer, getDeploymentDescriptor, getEjb10Environment, getEJBName, getEnv, getInitialContext, getTransactionManager, init, isClassAvailable, isTxBeanManaged, myClassLoader, postInvoke, postInvokeRemote, preInvoke, preInvokeRemote, resetComponentContext, setComponentContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bctxlist
protected java.util.List bctxlist
instanceCount
protected int instanceCount
minPoolSize
protected int minPoolSize
maxCacheSize
protected int maxCacheSize
JStatelessFactory
public JStatelessFactory(SessionStatelessDesc dd,
JContainer cont)
- constructor
- Parameters:
dd
- Session Stateless Deployment Descriptor
getPoolSize
public int getPoolSize()
- Description copied from interface:
BeanFactory
- Get the size of the instance pool for this bean
- Specified by:
getPoolSize
in interface BeanFactory
- Specified by:
getPoolSize
in class JFactory
- Returns:
- the Instance pool size for this Ejb
reduceCache
public void reduceCache()
- Reduce number of instances in memory in the free list
we reduce to the minPoolSize
createNewSession
public JSessionSwitch createNewSession()
throws java.rmi.RemoteException
- Creates a new Session Stateless
- Specified by:
createNewSession
in class JSessionFactory
- Returns:
- the new JSessionSwitch
- Throws:
java.rmi.RemoteException
getJContext
public JSessionContext getJContext()
- Specified by:
getJContext
in class JSessionFactory
- Returns:
- a SessionContext for Stateless Session Bean
releaseJContext
public void releaseJContext(JContext ctx)
- Called after each method call
- Parameters:
ctx
- the Session Context
getMinPoolSize
public int getMinPoolSize()
- Returns:
- min pool size
for Jmx
getMaxCacheSize
public int getMaxCacheSize()
- Returns:
- max cache size
for Jmx
getCacheSize
public int getCacheSize()
- Returns:
- current cache size ( = nb of instance created)
for Jmx