org.objectweb.jonas_ejb.container
Class JStatelessContext

java.lang.Object
  extended byorg.objectweb.jonas_ejb.container.JContext
      extended byorg.objectweb.jonas_ejb.container.JSessionContext
          extended byorg.objectweb.jonas_ejb.container.JStatelessContext
All Implemented Interfaces:
javax.ejb.EJBContext, java.io.Serializable, javax.ejb.SessionContext

public class JStatelessContext
extends JSessionContext

This class extends JSessionContext in case of Stateless Session Bean.

Author:
Philippe Durieux
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.jonas_ejb.container.JSessionContext
bs, ismarkedremoved
 
Fields inherited from class org.objectweb.jonas_ejb.container.JContext
bf, cont, home, instance, localhome, tm
 
Constructor Summary
JStatelessContext(JSessionFactory bf, javax.ejb.SessionBean sb)
          constructor
 
Method Summary
 javax.xml.rpc.handler.MessageContext getMessageContext()
          Obtain a reference to the JAX-RPC MessageContext.
 javax.ejb.TimerService getTimerService()
          Get access to the EJB Timer Service.
 void setConnectionList(java.util.List conlist)
          Set the connection list for this instance.
 void setRemoved()
          set this instance as removed
 
Methods inherited from class org.objectweb.jonas_ejb.container.JSessionContext
getEJBLocalObject, getEJBObject, getInstance, initSessionContext, isMarkedRemoved
 
Methods inherited from class org.objectweb.jonas_ejb.container.JContext
getCallerIdentity, getCallerPrincipal, getEJBHome, getEJBLocalHome, getEnvironment, getRollbackOnly, getUserTransaction, isCallerInRole, isCallerInRole, setRollbackOnly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.ejb.EJBContext
getCallerIdentity, getCallerPrincipal, getEJBHome, getEJBLocalHome, getEnvironment, getRollbackOnly, getUserTransaction, isCallerInRole, isCallerInRole, setRollbackOnly
 

Constructor Detail

JStatelessContext

public JStatelessContext(JSessionFactory bf,
                         javax.ejb.SessionBean sb)
constructor

Parameters:
bf - The Bean Factory
sb - The Session Bean instance.
Method Detail

getTimerService

public javax.ejb.TimerService getTimerService()
                                       throws java.lang.IllegalStateException
Get access to the EJB Timer Service.

Specified by:
getTimerService in interface javax.ejb.EJBContext
Specified by:
getTimerService in class JContext
Returns:
the EJB Timer Service
Throws:
java.lang.IllegalStateException - Thrown if the instance is not allowed to use this method

setRemoved

public void setRemoved()
                throws java.rmi.RemoteException,
                       javax.ejb.RemoveException
set this instance as removed

Specified by:
setRemoved in class JSessionContext
Throws:
java.rmi.RemoteException
javax.ejb.RemoveException

getMessageContext

public javax.xml.rpc.handler.MessageContext getMessageContext()
                                                       throws java.lang.IllegalStateException
Obtain a reference to the JAX-RPC MessageContext.

Specified by:
getMessageContext in interface javax.ejb.SessionContext
Specified by:
getMessageContext in class JSessionContext
Returns:
The MessageContext for this web service invocation.
Throws:
java.lang.IllegalStateException - - the instance is in a state that does not allow access to this method.

setConnectionList

public void setConnectionList(java.util.List conlist)
Set the connection list for this instance.

Specified by:
setConnectionList in class JSessionContext