|
||||||||||
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
This class is a factory for a Session Bean. It is responsible for - managing Home and LocalHome. - keeping the JNDI context for this component (java:comp/env)
Field Summary | |
protected JSessionHome |
home
|
protected boolean |
isStateful
|
protected boolean |
isSynchro
|
protected JSessionLocalHome |
localhome
|
protected java.util.ArrayList |
sessionList
Pool of free JSessionSwitch objects Used if singleswitch=false. |
protected boolean |
singleswitch
If no timeout, we can manage only 1 JSessionSwitch for all sessions. |
protected JSessionSwitch |
uniqueSession
Unique JSessionSwitch when singleswitch=true |
Fields inherited from class org.objectweb.jonas_ejb.container.JFactory |
beanclass, cont, dd, ejb10Env, ejbname, ejbTimeoutSignature, isClusterReplicated, JNDICtx, maxCacheSize, minPoolSize, myTimerService, naming, passivationDir, stopped, timerTxAttr, tm, txbeanmanaged, wm |
Constructor Summary | |
JSessionFactory(SessionDesc dd,
JContainer cont)
constructor |
Method Summary | |
void |
checkTransaction(RequestCtx rctx)
Session beans can be container managed or bean managed transaction Session home don't check transactional context. |
JSessionSwitch |
createEJB()
Create a new Session Find one in the pool, or create a new object. |
protected abstract JSessionSwitch |
createNewSession()
|
JHome |
getHome()
returns the home if exist or null if not |
abstract JSessionContext |
getJContext(JSessionSwitch ss)
|
JLocalHome |
getLocalHome()
returns the local home if exist or null if not |
int |
getTimeout()
|
boolean |
isSessionSynchro()
|
boolean |
isStateful()
|
void |
removeEJB(JSessionSwitch bs)
remove a Session. |
void |
setTimeout(int t)
set the current timeout value for Jmx |
boolean |
singleSwitchOn()
Return true if singleswitch option is on. |
void |
stop()
stop this EJB. |
void |
syncDirty(boolean notused)
synchronize bean instances if needed |
Methods inherited from class org.objectweb.jonas_ejb.container.JFactory |
checkJonasVersion, checkSecurity, checkTransactionContainer, getCacheSize, getContainer, getDeploymentDescriptor, getEjb10Environment, getEJBName, getEjbTimeoutSignature, getEnv, getInitialContext, getMaxCacheSize, getMinPoolSize, getPassivationDir, getPoolSize, getTimerService, getTimerTxAttribute, getTransactionManager, getWorkManager, init, initInstancePool, 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 |
Methods inherited from interface org.objectweb.jonas_ejb.container.BeanFactory |
reduceCache, storeInstances |
Field Detail |
protected JSessionHome home
protected JSessionLocalHome localhome
protected boolean isSynchro
protected boolean isStateful
protected java.util.ArrayList sessionList
protected JSessionSwitch uniqueSession
protected boolean singleswitch
Constructor Detail |
public JSessionFactory(SessionDesc dd, JContainer cont)
dd
- The Session Deployment Descriptorcont
- The Container where the bean is defined.Method Detail |
public boolean singleSwitchOn()
public void stop()
public void syncDirty(boolean notused)
notused
- True if store even if passivation timeout not elapsedpublic JHome getHome()
BeanFactory
public JLocalHome getLocalHome()
BeanFactory
public JSessionSwitch createEJB() throws java.rmi.RemoteException
java.rmi.RemoteException
public void removeEJB(JSessionSwitch bs)
bs
- The Bean Session Switch to put back in the pool.public void checkTransaction(RequestCtx rctx)
rctx
- The Request Contextpublic boolean isSessionSynchro()
public int getTimeout()
public void setTimeout(int t)
public boolean isStateful()
public abstract JSessionContext getJContext(JSessionSwitch ss)
protected abstract JSessionSwitch createNewSession() throws java.rmi.RemoteException
java.rmi.RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |