当前页面:
在线文档首页 >
JBoss 3.2.7 server API Documentation 英文版文档
MessageDrivenEnterpriseContext (JBoss Server API) - JBoss 3.2.7 server API Documentation 英文版文档
org.jboss.ejb
Class MessageDrivenEnterpriseContext
java.lang.Object
org.jboss.ejb.EnterpriseContext
org.jboss.ejb.MessageDrivenEnterpriseContext
- public class MessageDrivenEnterpriseContext
- extends EnterpriseContext
Context for message driven beans.
- Version:
- $Revision: 1.16.2.1 $
- Author:
- Peter Antman., Rickard 脰berg, Sebastien Alborini, Jason Dillon
Methods inherited from class org.jboss.ejb.EnterpriseContext |
clear, getContainer, getId, getInstance, getTransaction, getTxLock, isContainerManagedTx, isLocked, lock, setId, setPrincipal, setTransaction, setUserTransactionStartedListener, unlock |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageDrivenEnterpriseContext
public MessageDrivenEnterpriseContext(Object instance,
Container con)
throws Exception
- Construct a MessageDrivenEnterpriseContext.
Sets the MDB context and calls ejbCreate().
- Parameters:
instance
- An instance of MessageDrivenBeancon
- The container for this MDB.
- Throws:
Exception
- EJBException, Error or Exception. If RuntimeException
was thrown by ejbCreate it will be turned into an
EJBException.
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.