|
||||||||||
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
|
protected int |
instanceCount
|
protected int |
maxCacheSize
|
protected int |
minPoolSize
|
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, 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 |
int |
getCacheSize()
|
JSessionContext |
getJContext()
|
int |
getMaxCacheSize()
|
int |
getMinPoolSize()
|
int |
getPoolSize()
Get the size of the instance pool for this bean |
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, stop, sync |
Methods inherited from class org.objectweb.jonas_ejb.container.JFactory |
checkJonasVersion, checkTransactionContainer, getContainer, getDeploymentDescriptor, getEjb10Environment, getEJBName, getEnv, getInitialContext, getTimerService, 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 |
Field Detail |
protected java.util.List bctxlist
protected int instanceCount
protected int minPoolSize
protected int maxCacheSize
Constructor Detail |
public JStatelessFactory(SessionStatelessDesc dd, JContainer cont)
dd
- Session Stateless Deployment DescriptorMethod Detail |
public int getPoolSize()
BeanFactory
getPoolSize
in interface BeanFactory
getPoolSize
in class JFactory
public void reduceCache()
public JSessionSwitch createNewSession() throws java.rmi.RemoteException
createNewSession
in class JSessionFactory
java.rmi.RemoteException
public JSessionContext getJContext()
getJContext
in class JSessionFactory
public void releaseJContext(JContext ctx)
ctx
- the Session Contextpublic void notifyTimeout(javax.ejb.Timer timer)
timer
- timer whose expiration caused this notification.public int getMinPoolSize()
public int getMaxCacheSize()
public int getCacheSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |