|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.jonas_ejb.container.JFactory
org.objectweb.jonas_ejb.container.JSessionFactory
org.objectweb.jonas_ejb.container.JStatelessFactory
This class is a factory for a Session Stateless Bean.
| Field Summary | |
protected java.util.List |
bctxlist
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. |
protected int |
instanceCount
|
protected int |
maxCacheSize
|
protected int |
minPoolSize
|
protected JServiceEndpointHome |
sehome
|
| Fields inherited from class org.objectweb.jonas_ejb.container.JSessionFactory |
home, isStateful, isSynchro, localhome, sessionList, singleswitch, uniqueSession |
| Fields inherited from class org.objectweb.jonas_ejb.container.JFactory |
beanclass, cont, dd, ejb10Env, ejbname, ejbTimeoutSignature, JNDICtx, myTimerService, naming, passivationDir, stopped, timerTxAttr, tm, txbeanmanaged, wm |
| Constructor Summary | |
JStatelessFactory(SessionStatelessDesc dd,
JContainer cont)
constructor |
|
| Method Summary | |
JSessionSwitch |
createNewSession()
Creates a new Session Stateless |
int |
getCacheSize()
|
JSessionContext |
getJContext(JSessionSwitch ss)
|
int |
getMaxCacheSize()
|
int |
getMinPoolSize()
|
int |
getPoolSize()
Get the size of the instance pool for this bean |
JServiceEndpointHome |
getSEHome()
|
javax.ejb.TimerService |
getTimerService()
Obtains the TimerService associated for this Bean |
void |
initInstancePool()
Init pool of instances. |
void |
notifyTimeout(javax.ejb.Timer timer)
Notify a timeout for this bean |
void |
reduceCache()
Reduce number of instances in memory in the free list we reduce to the minPoolSize |
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, removeEJB, setTimeout, singleSwitchOn, stop, syncDirty |
| Methods inherited from class org.objectweb.jonas_ejb.container.JFactory |
checkJonasVersion, checkSecurity, checkTransactionContainer, getContainer, getDeploymentDescriptor, getEjb10Environment, getEJBName, getEjbTimeoutSignature, getEnv, getInitialContext, getPassivationDir, getTimerTxAttribute, getTransactionManager, getWorkManager, init, isClassAvailable, isStopped, isTxBeanManaged, myClassLoader, postInvoke, postInvokeRemote, preInvoke, preInvokeRemote, resetComponentContext, restartTimers, setComponentContext, stopContainer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.List bctxlist
protected JServiceEndpointHome sehome
protected int instanceCount
protected int minPoolSize
protected int maxCacheSize
| Constructor Detail |
public JStatelessFactory(SessionStatelessDesc dd,
JContainer cont)
dd - Session Stateless Deployment Descriptor| Method Detail |
public void initInstancePool()
initInstancePool in interface BeanFactoryinitInstancePool in class JFactorypublic JServiceEndpointHome getSEHome()
public int getPoolSize()
BeanFactory
getPoolSize in interface BeanFactorygetPoolSize in class JFactorypublic void reduceCache()
public javax.ejb.TimerService getTimerService()
getTimerService in class JFactory
public JSessionSwitch createNewSession()
throws java.rmi.RemoteException
createNewSession in class JSessionFactoryjava.rmi.RemoteExceptionpublic JSessionContext getJContext(JSessionSwitch ss)
getJContext in class JSessionFactorypublic void releaseJContext(JContext ctx)
ctx - the Session Contextpublic void notifyTimeout(javax.ejb.Timer timer)
timer - timer whose expiration caused this notification.public int getMinPoolSize()
getMinPoolSize in class JFactorypublic int getMaxCacheSize()
getMaxCacheSize in class JFactorypublic int getCacheSize()
getCacheSize in class JFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||