org.objectweb.jonas_ejb.container
Class JStatelessContext
java.lang.Object
org.objectweb.jonas_ejb.container.JContext
org.objectweb.jonas_ejb.container.JSessionContext
org.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
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 |
setRemoved()
set this instance as removed |
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 |
JStatelessContext
public JStatelessContext(JSessionFactory bf,
javax.ejb.SessionBean sb)
- constructor
- Parameters:
bf
- The Bean Factorysb
- The Session Bean instance.
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.