|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | 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
|
Fields inherited from class org.objectweb.jonas_ejb.container.JFactory |
beanclass, bn, cont, dd, ejb10Env, ejbname, JNDICtx, naming, tm, txbeanmanaged |
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 |
abstract JSessionContext |
getJContext()
|
JLocalHome |
getLocalHome()
returns the local home if exist |
int |
getTimeout()
return the current timeout value for Jmx |
boolean |
isSessionSynchro()
|
boolean |
isStateful()
Return true if this Session is Stateful. |
void |
reduceCache()
Reduce number of instances in memory |
void |
removeEJB(JSessionSwitch bs)
remove a Session. |
void |
setTimeout(int t)
set the current timeout value for Jmx |
void |
stop()
stop this EJB. |
void |
sync()
synchronize bean instances if needed |
Methods inherited from class org.objectweb.jonas_ejb.container.JFactory |
checkJonasVersion, checkTransactionContainer, getContainer, getCorbaInitialContext, getDeploymentDescriptor, getEjb10Environment, getEJBName, getEnv, getInitialContext, getPoolSize, getTransactionManager, init, isTxBeanManaged, 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 JSessionHome home
protected JSessionLocalHome localhome
protected boolean isSynchro
protected boolean isStateful
protected java.util.ArrayList sessionList
Constructor Detail |
public JSessionFactory(SessionDesc dd, JContainer cont)
Method Detail |
public void stop()
public void sync()
public void reduceCache()
public JHome getHome()
public JLocalHome getLocalHome()
public JSessionSwitch createEJB() throws java.rmi.RemoteException
public void removeEJB(JSessionSwitch bs)
public void checkTransaction(RequestCtx rctx) throws javax.transaction.SystemException
public boolean isSessionSynchro()
public int getTimeout()
public void setTimeout(int t)
public boolean isStateful()
public abstract JSessionContext getJContext()
protected abstract JSessionSwitch createNewSession() throws java.rmi.RemoteException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |