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

MessageDrivenEnterpriseContext.MessageDrivenContextImpl (JBoss Server API) - JBoss 3.2.7 server API Documentation 英文版文档


org.jboss.ejb
Class MessageDrivenEnterpriseContext.MessageDrivenContextImpl

java.lang.Object
  extended byorg.jboss.ejb.EnterpriseContext.EJBContextImpl
      extended byorg.jboss.ejb.MessageDrivenEnterpriseContext.MessageDrivenContextImpl
All Implemented Interfaces:
javax.ejb.EJBContext, javax.ejb.MessageDrivenContext
Enclosing class:
MessageDrivenEnterpriseContext

protected class MessageDrivenEnterpriseContext.MessageDrivenContextImpl
extends EnterpriseContext.EJBContextImpl
implements javax.ejb.MessageDrivenContext

The EJBContext for MDBs.


Constructor Summary
protected MessageDrivenEnterpriseContext.MessageDrivenContextImpl()
           
 
Method Summary
 Principal getCallerPrincipal()
          Not allowed for MDB.
 javax.ejb.EJBHome getEJBHome()
          Not allowed for MDB.
 javax.ejb.EJBLocalHome getEJBLocalHome()
          Not allowed for MDB.
 boolean getRollbackOnly()
          If transaction type is not Container or there is no transaction then throw an exception.
 boolean isCallerInRole(String id)
          Not allowed for MDB.
 void setRollbackOnly()
          If transaction type is not Container or there is no transaction then throw an exception.
 
Methods inherited from class org.jboss.ejb.EnterpriseContext.EJBContextImpl
getCallerIdentity, getEnvironment, getUserTransaction, isCallerInRole
 
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, getEnvironment, getUserTransaction, isCallerInRole
 

Constructor Detail

MessageDrivenEnterpriseContext.MessageDrivenContextImpl

protected MessageDrivenEnterpriseContext.MessageDrivenContextImpl()
Method Detail

getEJBHome

public javax.ejb.EJBHome getEJBHome()
Not allowed for MDB.

Specified by:
getEJBHome in interface javax.ejb.EJBContext
Overrides:
getEJBHome in class EnterpriseContext.EJBContextImpl
Throws:
IllegalStateException - Always

getEJBLocalHome

public javax.ejb.EJBLocalHome getEJBLocalHome()
Not allowed for MDB.

Specified by:
getEJBLocalHome in interface javax.ejb.EJBContext
Overrides:
getEJBLocalHome in class EnterpriseContext.EJBContextImpl
Throws:
IllegalStateException - Always

isCallerInRole

public boolean isCallerInRole(String id)
Not allowed for MDB.

Specified by:
isCallerInRole in interface javax.ejb.EJBContext
Overrides:
isCallerInRole in class EnterpriseContext.EJBContextImpl
Throws:
IllegalStateException - Always

getCallerPrincipal

public Principal getCallerPrincipal()
Not allowed for MDB.

Specified by:
getCallerPrincipal in interface javax.ejb.EJBContext
Overrides:
getCallerPrincipal in class EnterpriseContext.EJBContextImpl
Throws:
IllegalStateException - Always

getRollbackOnly

public boolean getRollbackOnly()
If transaction type is not Container or there is no transaction then throw an exception.

Specified by:
getRollbackOnly in interface javax.ejb.EJBContext
Overrides:
getRollbackOnly in class EnterpriseContext.EJBContextImpl
Throws:
IllegalStateException - If transaction type is not Container, or no transaction.

setRollbackOnly

public void setRollbackOnly()
If transaction type is not Container or there is no transaction then throw an exception.

Specified by:
setRollbackOnly in interface javax.ejb.EJBContext
Overrides:
setRollbackOnly in class EnterpriseContext.EJBContextImpl
Throws:
IllegalStateException - If transaction type is not Container, or no transaction.


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