| |
|
| java.lang.Object org.objectweb.jonas_ejb.container.JFactory org.objectweb.jonas_ejb.container.JSessionFactory org.objectweb.jonas_ejb.container.JStatefulFactory
JStatefulFactory | public class JStatefulFactory extends JSessionFactory (Code) | | This class is a factory for a Session Stateful Bean.
author: Philippe Durieux |
cacheSize | protected int cacheSize(Code) | | Current Cache Size
|
statefulList | protected HashMap statefulList(Code) | | List of JStatefulSwitch objects (pool of session instances)
Key is the sessionId
|
JStatefulFactory | public JStatefulFactory(SessionStatefulDesc dd, JContainer cont)(Code) | | constructor
Parameters: dd - Bean Deployment Descriptor Parameters: cont - Container where the bean is defined |
checkSecurity | public void checkSecurity(EJBInvocation ejbInv)(Code) | | Check if the access to the bean is authorized
Parameters: ejbInv - object containing security signature of the method, args ofmethod, etc |
getCacheSize | public int getCacheSize()(Code) | | the Instance cache size for this Ejb |
getJContext | public JSessionContext getJContext(JSessionSwitch ss)(Code) | | get a new session context must call newInstance (EJB specs) => no pool
should be used.
a new Session Context |
getPoolSize | public int getPoolSize()(Code) | | No pool for stateful session beans
0 |
getTimerService | public TimerService getTimerService()(Code) | | Obtains the TimerService associated for this Bean
a JTimerService instance. |
initInstancePool | public void initInstancePool()(Code) | | No pool of instances for stateful session beans
|
postInvoke | public void postInvoke(RequestCtx rctx)(Code) | | postinvoke
Parameters: rctx - The RequestCtx that was returned at preInvoke() throws: EJBException - |
preInvoke | public RequestCtx preInvoke(int txa)(Code) | | preInvoke for Session beans stateful
Parameters: txa - Transaction Attribute (Supports, Required, ...) A RequestCtx object throws: EJBException - |
reduceCache | public void reduceCache()(Code) | | Reduce number of instances in memory
|
removeStateful | public synchronized void removeStateful(int sid)(Code) | | |
storeInstances | public void storeInstances(Transaction tx)(Code) | | |
|
|
|