org.objectweb.jonas_ejb.container
Class JStatelessSwitch
java.lang.Object
|
+--org.objectweb.jonas_ejb.container.JSessionSwitch
|
+--org.objectweb.jonas_ejb.container.JStatelessSwitch
- All Implemented Interfaces:
- TimerEventListener
- public class JStatelessSwitch
- extends JSessionSwitch
JStatelessSwitch is the implementation of JSessionSwitch dedicated to the
Stateless Session Bean.
- Author:
- Philippe Durieux
Method Summary |
JSessionContext |
getICtx(javax.transaction.Transaction tx)
get an initialized Bean Context |
void |
noLongerUsed()
This Session is no longer used. |
void |
releaseICtx(javax.transaction.Transaction tx)
release the bean context.
|
void |
setMustCommit(boolean mc)
This is not used for stateless |
void |
timeoutExpired(java.lang.Object arg)
The session timeout has expired |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JStatelessSwitch
public JStatelessSwitch(JStatelessFactory bf)
throws java.rmi.RemoteException
- constructor.
- Parameters:
bf
- The Bean Factory
timeoutExpired
public void timeoutExpired(java.lang.Object arg)
- The session timeout has expired
- Parameters:
arg
- Not Used.
getICtx
public JSessionContext getICtx(javax.transaction.Transaction tx)
throws java.rmi.RemoteException
- get an initialized Bean Context
- Overrides:
getICtx
in class JSessionSwitch
- Parameters:
tx
- Current transaction (not used)- Returns:
- the Session Context
releaseICtx
public void releaseICtx(javax.transaction.Transaction tx)
- release the bean context.
Assumes that only 1 Context is managed at a time.
Contexts are release at each request, in case of stateless session.
- Overrides:
releaseICtx
in class JSessionSwitch
- Parameters:
tx
- Current transaction (not used)
noLongerUsed
public void noLongerUsed()
- This Session is no longer used.
setMustCommit
public void setMustCommit(boolean mc)
- This is not used for stateless
- Overrides:
setMustCommit
in class JSessionSwitch
- Parameters:
mc
- Not Used.