Class MessageBeanContextImpl

java.lang.Object
com.sun.ejb.containers.EJBContextImpl
org.glassfish.ejb.mdb.MessageBeanContextImpl
All Implemented Interfaces:
com.sun.ejb.ComponentContext, jakarta.ejb.EJBContext, jakarta.ejb.MessageDrivenContext, Serializable, org.glassfish.api.invocation.ResourceHandler

public final class MessageBeanContextImpl extends com.sun.ejb.containers.EJBContextImpl implements jakarta.ejb.MessageDrivenContext
Implementation of EJBContext for message-driven beans
Author:
Kenneth Saks
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.sun.ejb.containers.EJBContextImpl

    com.sun.ejb.containers.EJBContextImpl.BeanState
  • Field Summary

    Fields inherited from class com.sun.ejb.containers.EJBContextImpl

    cdiInjectionContext, container, ejbLocalBusinessObjectImpl, ejbLocalObjectImpl, ejbObjectImpl, ejbRemoteBusinessObjectImpl, ejbStub, inEjbRemove, initialContext, isLocalInterfaceSupported, isRemoteInterfaceSupported, optionalEjbLocalBusinessObjectImpl, state, transaction
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    void
     
    jakarta.ejb.EJBHome
    Doesn't make any sense to get EJBHome object for a message-driven ejb.
    jakarta.ejb.TimerService
     
    jakarta.transaction.UserTransaction
     
    boolean
     
    void
     

    Methods inherited from class com.sun.ejb.containers.EJBContextImpl

    checkActivatePassivate, decrementConcurrentInvokeCount, doGetSetRollbackTxAttrCheck, getCallerIdentity, getCallerPrincipal, getConcurrentInvokeCount, getContainer, getContextData, getEJB, getEJBLocalHome, getEJBLocalObject, getEJBObject, getEnvironment, getInterceptorInstances, getKey, getLastTimeUsed, getResourceList, getRollbackOnly, getState, getTransaction, inActivatePassivate, inActivatePassivate, incrementConcurrentInvokeCount, lookup, registerResource, setRollbackOnly, setTransaction, touch, unregisterResource

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface jakarta.ejb.EJBContext

    getCallerPrincipal, getContextData, getEJBLocalHome, getRollbackOnly, lookup, setRollbackOnly
  • Method Details

    • setContextCalled

      public void setContextCalled()
    • getUserTransaction

      public jakarta.transaction.UserTransaction getUserTransaction() throws IllegalStateException
      Specified by:
      getUserTransaction in interface jakarta.ejb.EJBContext
      Overrides:
      getUserTransaction in class com.sun.ejb.containers.EJBContextImpl
      Throws:
      IllegalStateException
    • getEJBHome

      public jakarta.ejb.EJBHome getEJBHome()
      Doesn't make any sense to get EJBHome object for a message-driven ejb.
      Specified by:
      getEJBHome in interface jakarta.ejb.EJBContext
      Overrides:
      getEJBHome in class com.sun.ejb.containers.EJBContextImpl
    • checkAccessToCallerSecurity

      protected void checkAccessToCallerSecurity() throws IllegalStateException
      Overrides:
      checkAccessToCallerSecurity in class com.sun.ejb.containers.EJBContextImpl
      Throws:
      IllegalStateException
    • isCallerInRole

      public boolean isCallerInRole(String roleRef)
      Specified by:
      isCallerInRole in interface jakarta.ejb.EJBContext
      Overrides:
      isCallerInRole in class com.sun.ejb.containers.EJBContextImpl
    • getTimerService

      public jakarta.ejb.TimerService getTimerService() throws IllegalStateException
      Specified by:
      getTimerService in interface jakarta.ejb.EJBContext
      Throws:
      IllegalStateException
    • checkTimerServiceMethodAccess

      public void checkTimerServiceMethodAccess() throws IllegalStateException
      Specified by:
      checkTimerServiceMethodAccess in interface com.sun.ejb.ComponentContext
      Overrides:
      checkTimerServiceMethodAccess in class com.sun.ejb.containers.EJBContextImpl
      Throws:
      IllegalStateException