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.


Fields inherited from class org.objectweb.jonas_ejb.container.JSessionSwitch
bf, local, mytimer, remote
 
Constructor Summary
JStatelessSwitch(JStatelessFactory bf)
          constructor.
 
Method Summary
 JSessionContext getICtx(javax.transaction.Transaction tx)
          get a Bean Context
 void noLongerUsed()
           
 void releaseICtx(javax.transaction.Transaction tx)
          release the bean context Contexts are release at each request, in case of stateless session.
 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 org.objectweb.jonas_ejb.container.JSessionSwitch
getBeanFactory, getLocal, getRemote, startTimer, stopTimer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JStatelessSwitch

public JStatelessSwitch(JStatelessFactory bf)
                 throws java.rmi.RemoteException
constructor.
Method Detail

timeoutExpired

public void timeoutExpired(java.lang.Object arg)
The session timeout has expired

getICtx

public JSessionContext getICtx(javax.transaction.Transaction tx)
                        throws java.rmi.RemoteException
get a Bean Context
Overrides:
getICtx in class JSessionSwitch

releaseICtx

public void releaseICtx(javax.transaction.Transaction tx)
release the bean context Contexts are release at each request, in case of stateless session.
Overrides:
releaseICtx in class JSessionSwitch

noLongerUsed

public void noLongerUsed()

setMustCommit

public void setMustCommit(boolean mc)
This is not used for stateless
Overrides:
setMustCommit in class JSessionSwitch