| |
|
| java.lang.Object org.objectweb.jonas_ejb.container.JFactory org.objectweb.jonas_ejb.container.JSessionFactory org.objectweb.jonas_ejb.container.JStatelessFactory
JStatelessFactory | public class JStatelessFactory extends JSessionFactory (Code) | | This class is a factory for a Session Stateless Bean.
author: Philippe Durieux |
bctxlist | protected List bctxlist(Code) | | instance pool management (list of available JSessionContext objects)
Contexts are pooled only for Stateless Session beans because for Stateful
sessions a newInstance() is required by the spec.
We don't need synchronizedList here, because anyway, we
synchronize already everywhere.
|
instanceCount | protected int instanceCount(Code) | | |
maxCacheSize | protected int maxCacheSize(Code) | | |
minPoolSize | protected int minPoolSize(Code) | | |
JStatelessFactory | public JStatelessFactory(SessionStatelessDesc dd, JContainer cont)(Code) | | constructor
Parameters: dd - Session Stateless Deployment Descriptor Parameters: cnt - Container where the bean is defined |
getCacheSize | public int getCacheSize()(Code) | | current cache size ( = nb of instance created) for Jmx |
getMaxCacheSize | public int getMaxCacheSize()(Code) | | max cache size for Jmx |
getMinPoolSize | public int getMinPoolSize()(Code) | | min pool size for Jmx |
getPoolSize | public int getPoolSize()(Code) | | the Instance pool size for this Ejb |
getTimerService | public TimerService getTimerService()(Code) | | Obtains the TimerService associated for this Bean
a JTimerService instance. |
initInstancePool | public void initInstancePool()(Code) | | Init pool of instances.
|
notifyTimeout | public void notifyTimeout(Timer timer)(Code) | | Notify a timeout for this bean
Parameters: timer - timer whose expiration caused this notification. |
reduceCache | public void reduceCache()(Code) | | Reduce number of instances in memory in the free list we reduce to the
minPoolSize
|
releaseJContext | public void releaseJContext(JContext ctx)(Code) | | Called after each method call
Parameters: ctx - the Session Context |
storeInstances | public void storeInstances(Transaction tx)(Code) | | |
|
|
|