站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 server API Documentation 英文版文档

MessageDrivenEnterpriseContext (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档


org.jboss.ejb
Class MessageDrivenEnterpriseContext

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

public class MessageDrivenEnterpriseContext
extends EnterpriseContext

Context for message driven beans.

Version:
$Revision: 1.23.6.1 $
Author:
Peter Antman., Rickard 锟絙erg, Sebastien Alborini, Jason Dillon

Nested Class Summary
protected  class MessageDrivenEnterpriseContext.MessageDrivenContextImpl
          The EJBContext for MDBs.
 class MessageDrivenEnterpriseContext.TimerServiceWrapper
          Delegates to the underlying TimerService, after checking access
 
Nested classes inherited from class org.jboss.ejb.EnterpriseContext
EnterpriseContext.EJBContextImpl, EnterpriseContext.UserTransactionImpl
 
Field Summary
 
Fields inherited from class org.jboss.ejb.EnterpriseContext
log
 
Fields inherited from interface org.jboss.ejb.AllowedOperationsFlags
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(Object instance, Container con)
          Construct a MessageDrivenEnterpriseContext.
 
Method Summary
 void discard()
          Calls ejbRemove() on the MDB instance.
 javax.ejb.EJBContext getEJBContext()
          Get the EJBContext object
 javax.ejb.MessageDrivenContext getMessageDrivenContext()
           
 
Methods inherited from class org.jboss.ejb.EnterpriseContext
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(Object instance,
                                      Container con)
                               throws Exception
Construct a MessageDrivenEnterpriseContext.

Sets the MDB context and calls ejbCreate().

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

getMessageDrivenContext

public javax.ejb.MessageDrivenContext getMessageDrivenContext()

discard

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

Specified by:
discard in class EnterpriseContext
Throws:
RemoteException

getEJBContext

public javax.ejb.EJBContext getEJBContext()
Description copied from class: EnterpriseContext
Get the EJBContext object

Specified by:
getEJBContext in class EnterpriseContext


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.