|
||||||||||
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 |
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, myTimerService, naming, tm, txbeanmanaged |
Constructor Summary | |
JStatefulFactory(SessionStatefulDesc dd,
JContainer cont,
JStatefulPool sfp)
constructor |
Method Summary | |
void |
checkSecurity(EJBInvocation ejbInv)
Check if the access to the bean is authorized |
JSessionSwitch |
createNewSession()
Creates a new Session Stateful called back from createEJB |
JSessionContext |
getJContext()
get a new session context must call newInstance (EJB specs) => no pool should be used. |
int |
getPoolSize()
Get the size of the instance pool for this bean |
javax.ejb.TimerService |
getTimerService()
Obtains the TimerService associated for this Bean |
void |
postInvoke(RequestCtx rctx)
postinvoke |
RequestCtx |
preInvoke(int txa)
preInvoke for Session beans stateful |
void |
reduceCache()
Reduce number of instances in memory |
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, getTransactionManager, init, isClassAvailable, isTxBeanManaged, myClassLoader, postInvokeRemote, preInvokeRemote, resetComponentContext, setComponentContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JStatefulFactory(SessionStatefulDesc dd, JContainer cont, JStatefulPool sfp)
dd
- Bean Deployment Descriptorcont
- Container where the bean is definedsfp
- Pool des sessions statefulMethod Detail |
public int getPoolSize()
BeanFactory
getPoolSize
in interface BeanFactory
getPoolSize
in class JFactory
public void reduceCache()
public RequestCtx preInvoke(int txa)
preInvoke
in class JFactory
txa
- Transaction Attribute (Supports, Required, ...)
javax.ejb.EJBException
public void checkSecurity(EJBInvocation ejbInv)
checkSecurity
in class JFactory
ejbInv
- object containing security signature of the method, args of
method, etcpublic void postInvoke(RequestCtx rctx)
postInvoke
in class JFactory
rctx
- The RequestCtx that was returned at preInvoke()
javax.ejb.EJBException
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()
getJContext
in class JSessionFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |