| |
|
| java.lang.Object org.objectweb.jonas_ejb.container.JSessionSwitch
All known Subclasses: org.objectweb.jonas_ejb.container.JStatelessSwitch, org.objectweb.jonas_ejb.container.JStatefulSwitch,
JSessionSwitch | abstract public class JSessionSwitch implements TimerEventListener(Code) | | JSessionSwitch holds all the code that is common to EJBObject and
EJBLocalObject for session beans. It mainly keep a reference on the
SessionContext and is used to manage the timeout for the session. This class
has 2 subclasses, depending if session is stateless or stateful.
author: Philippe Durieux |
JSessionSwitch | public JSessionSwitch(JSessionFactory bf) throws RemoteException(Code) | | constructor. a new object is build when the pool managed by
JSessionFactory becomes empty.
Parameters: bf - The Bean Factory |
delistConnections | abstract public void delistConnections(Transaction tx)(Code) | | |
enlistConnections | abstract public void enlistConnections(Transaction tx)(Code) | | |
noLongerUsed | abstract public void noLongerUsed()(Code) | | |
popConnectionList | abstract public void popConnectionList()(Code) | | |
pushConnectionList | abstract public void pushConnectionList()(Code) | | |
releaseICtx | abstract public void releaseICtx(RequestCtx req, boolean discard)(Code) | | |
saveBeanTx | abstract public void saveBeanTx()(Code) | | |
setMustCommit | abstract public void setMustCommit(boolean mc)(Code) | | |
startTimer | public void startTimer(int timeout)(Code) | | Start a timer for this Session.
Parameters: timeout - nb of milliseconds max this Session should live. |
stopTimer | public void stopTimer()(Code) | | Stop the Timer associated to the Session
|
|
|
|