|
||||||||||
| 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.JStatefulFactory
This class is a factory for a Session Stateful Bean.
| Field Summary | |
protected int |
cacheSize
Current Cache Size |
protected java.util.HashMap |
statefulList
List of JStatefulSwitch objects (pool of session instances) Key is the sessionId |
| 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, maxCacheSize, minPoolSize, myTimerService, naming, passivationDir, stopped, timerTxAttr, tm, txbeanmanaged, wm |
| Constructor Summary | |
JStatefulFactory(SessionStatefulDesc dd,
JContainer cont)
constructor |
|
| Method Summary | |
JStatefulContext |
activateStateful(JStatefulSwitch jss)
|
void |
checkSecurity(EJBInvocation ejbInv)
Check if the access to the bean is authorized |
JSessionSwitch |
createNewSession()
Creates a new Session Stateful called back from createEJB |
int |
getCacheSize()
|
JSessionContext |
getJContext(JSessionSwitch ss)
get a new session context must call newInstance (EJB specs) => no pool should be used. |
int |
getNewSessionId(JStatefulSwitch jss)
|
int |
getPoolSize()
No pool for stateful session beans |
javax.ejb.TimerService |
getTimerService()
Obtains the TimerService associated for this Bean |
void |
initInstancePool()
No pool of instances for stateful session beans |
boolean |
passivateStateful(JStatefulSwitch jss)
|
void |
postInvoke(RequestCtx rctx)
postinvoke |
RequestCtx |
preInvoke(int txa)
preInvoke for Session beans stateful |
void |
reduceCache()
Reduce number of instances in memory |
void |
removeStateful(int sid)
|
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, checkTransactionContainer, getContainer, getDeploymentDescriptor, getEjb10Environment, getEJBName, getEjbTimeoutSignature, getEnv, getInitialContext, getMaxCacheSize, getMinPoolSize, getPassivationDir, getTimerTxAttribute, getTransactionManager, getWorkManager, init, isClassAvailable, isStopped, isTxBeanManaged, myClassLoader, postInvokeRemote, 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.HashMap statefulList
protected int cacheSize
| Constructor Detail |
public JStatefulFactory(SessionStatefulDesc dd,
JContainer cont)
dd - Bean Deployment Descriptorcont - Container where the bean is defined| Method Detail |
public int getCacheSize()
getCacheSize in class JFactorypublic int getPoolSize()
getPoolSize in interface BeanFactorygetPoolSize in class JFactorypublic void reduceCache()
public void initInstancePool()
initInstancePool in interface BeanFactoryinitInstancePool in class JFactorypublic RequestCtx preInvoke(int txa)
preInvoke in class JFactorytxa - Transaction Attribute (Supports, Required, ...)
javax.ejb.EJBExceptionpublic void checkSecurity(EJBInvocation ejbInv)
checkSecurity in class JFactoryejbInv - object containing security signature of the method, args of
method, etcpublic void postInvoke(RequestCtx rctx)
postInvoke in class JFactoryrctx - The RequestCtx that was returned at preInvoke()
javax.ejb.EJBExceptionpublic javax.ejb.TimerService getTimerService()
getTimerService in class JFactory
public JSessionSwitch createNewSession()
throws java.rmi.RemoteException
createNewSession in class JSessionFactoryjava.rmi.RemoteExceptionpublic int getNewSessionId(JStatefulSwitch jss)
public boolean passivateStateful(JStatefulSwitch jss)
public JStatefulContext activateStateful(JStatefulSwitch jss)
public void removeStateful(int sid)
public JSessionContext getJContext(JSessionSwitch ss)
getJContext in class JSessionFactorypublic void storeInstances(javax.transaction.Transaction tx)
BeanFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||