| |
|
| java.lang.Object org.objectweb.jonas_ejb.container.JFactory org.objectweb.jonas_ejb.container.JSessionFactory
All known Subclasses: org.objectweb.jonas_ejb.container.JStatelessFactory, org.objectweb.jonas_ejb.container.JStatefulFactory,
JSessionFactory | abstract public class JSessionFactory extends JFactory (Code) | | 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)
author: Philippe Durieux |
isStateful | protected boolean isStateful(Code) | | |
isSynchro | protected boolean isSynchro(Code) | | |
sessionList | protected ArrayList sessionList(Code) | | Pool of free JSessionSwitch objects
Used if singleswitch=false.
|
singleswitch | protected boolean singleswitch(Code) | | If no timeout, we can manage only 1 JSessionSwitch for all sessions.
Only used in case of stateless, for load balancing.
|
timeout | int timeout(Code) | | Timeout for this session.
|
uniqueSession | protected JSessionSwitch uniqueSession(Code) | | Unique JSessionSwitch when singleswitch=true
|
JSessionFactory | public JSessionFactory(SessionDesc dd, JContainer cont)(Code) | | constructor
Parameters: dd - The Session Deployment Descriptor Parameters: cont - The Container where the bean is defined. |
checkTransaction | public void checkTransaction(RequestCtx rctx)(Code) | | Session beans can be container managed or bean managed transaction
Session home don't check transactional context.
Parameters: rctx - The Request Context |
getTimeout | public int getTimeout()(Code) | | the current timeout value in seconds for Jmx |
isSessionSynchro | public boolean isSessionSynchro()(Code) | | True if this Session implements SessionSynchronization |
isStateful | public boolean isStateful()(Code) | | true if this Session is Stateful. Will be used internally byEJBObject or EJBLocalObject because they are common to bothtypes. |
removeEJB | public synchronized void removeEJB(JSessionSwitch bs)(Code) | | remove a Session. This may be called also on timeout. put it back in the
pool for later use.
Parameters: bs - The Bean Session Switch to put back in the pool. |
setTimeout | public void setTimeout(int t)(Code) | | set the current timeout value for Jmx
Parameters: timeout - in seconds |
singleSwitchOn | public boolean singleSwitchOn()(Code) | | Return true if singleswitch option is on.
|
stop | public void stop()(Code) | | stop this EJB. Mainly unregister it in JNDI.
|
syncDirty | public void syncDirty(boolean notused)(Code) | | synchronize bean instances if needed
|
|
|
|