|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas_ejb.container.JFactory org.objectweb.jonas_ejb.container.JSessionFactory org.objectweb.jonas_ejb.container.JStatelessFactory
public class 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, isClusterReplicated, 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 |
void |
storeInstances(javax.transaction.Transaction tx)
Store intances modified (used before finder ou select methods) |
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 Descriptorcnt
- Container where the bean is definedMethod Detail |
---|
public void initInstancePool()
initInstancePool
in interface BeanFactory
initInstancePool
in class JFactory
public JServiceEndpointHome getSEHome()
public int getPoolSize()
BeanFactory
getPoolSize
in interface BeanFactory
getPoolSize
in class JFactory
public void reduceCache()
public javax.ejb.TimerService getTimerService()
getTimerService
in class JFactory
public JSessionSwitch createNewSession() throws java.rmi.RemoteException
createNewSession
in class JSessionFactory
java.rmi.RemoteException
public JSessionContext getJContext(JSessionSwitch ss)
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()
getMinPoolSize
in class JFactory
public int getMaxCacheSize()
getMaxCacheSize
in class JFactory
public int getCacheSize()
getCacheSize
in class JFactory
public void storeInstances(javax.transaction.Transaction tx)
BeanFactory
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |