org.jboss.ejb
Class MessageDrivenEnterpriseContext

java.lang.Object
  extended byorg.jboss.ejb.EnterpriseContext (src) 
      extended byorg.jboss.ejb.MessageDrivenEnterpriseContext
All Implemented Interfaces:
AllowedOperationsFlags (src)

public class MessageDrivenEnterpriseContext
extends EnterpriseContext (src)

Context for message driven beans.


Nested Class Summary
protected  class MessageDrivenEnterpriseContext.MessageDrivenContextImpl (src)
          The EJBContext for MDBs.
 class MessageDrivenEnterpriseContext.TimerServiceWrapper (src)
          Delegates to the underlying TimerService, after checking access
 
Nested classes inherited from class org.jboss.ejb.EnterpriseContext (src)
EnterpriseContext.EJBContextImpl (src) , EnterpriseContext.UserTransactionImpl (src)
 
Field Summary
 
Fields inherited from class org.jboss.ejb.EnterpriseContext (src)
log
 
Fields inherited from interface org.jboss.ejb.AllowedOperationsFlags (src)
IN_AFTER_BEGIN, IN_AFTER_COMPLETION, IN_BEFORE_COMPLETION, IN_BUSINESS_METHOD, IN_EJB_ACTIVATE, IN_EJB_CREATE, IN_EJB_FIND, IN_EJB_HOME, IN_EJB_LOAD, IN_EJB_PASSIVATE, IN_EJB_POST_CREATE, IN_EJB_REMOVE, IN_EJB_STORE, IN_EJB_TIMEOUT, IN_INTERCEPTOR_METHOD, IN_SERVICE_ENDPOINT_METHOD, IN_SET_ENTITY_CONTEXT, IN_SET_MESSAGE_DRIVEN_CONTEXT, IN_SET_SESSION_CONTEXT, IN_UNSET_ENTITY_CONTEXT, NOT_ALLOWED
 
Constructor Summary
MessageDrivenEnterpriseContext(java.lang.Object instance, Container (src)  con)
          Construct a MessageDrivenEnterpriseContext.
 
Method Summary
 void discard()
          Calls ejbRemove() on the MDB instance.
 EJBContext (src) getEJBContext()
          Get the EJBContext object
 MessageDrivenContext (src) getMessageDrivenContext()
           
 
Methods inherited from class org.jboss.ejb.EnterpriseContext (src)
clear, getCallerPrincipal, getContainer, getId, getInstance, getTransaction, getTxLock, isContainerManagedTx, isLocked, isUserManagedTx, lock, setId, setPrincipal, setTransaction, setUserTransactionStartedListener, unlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageDrivenEnterpriseContext

public MessageDrivenEnterpriseContext(java.lang.Object instance,
                                      Container (src)  con)
                               throws java.lang.Exception
Construct a MessageDrivenEnterpriseContext.

Sets the MDB context and calls ejbCreate().

Parameters:
instance - An instance of MessageDrivenBean
con - The container for this MDB.
Throws:
java.lang.Exception - EJBException, Error or Exception. If RuntimeException was thrown by ejbCreate it will be turned into an EJBException.
Method Detail

getMessageDrivenContext

public MessageDrivenContext (src)  getMessageDrivenContext()

discard

public void discard()
             throws java.rmi.RemoteException
Calls ejbRemove() on the MDB instance.

Specified by:
discard in class EnterpriseContext (src)
Throws:
java.rmi.RemoteException

getEJBContext

public EJBContext (src)  getEJBContext()
Description copied from class: EnterpriseContext (src)
Get the EJBContext object

Specified by:
getEJBContext in class EnterpriseContext (src)