Class 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:
    Serialized Form
    • 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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void checkAccessToCallerSecurity()  
      void checkTimerServiceMethodAccess()  
      jakarta.ejb.EJBHome getEJBHome()  
      jakarta.ejb.TimerService getTimerService()  
      jakarta.transaction.UserTransaction getUserTransaction()  
      boolean isCallerInRole​(String roleRef)  
      void setContextCalled()  
      • 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, isCallerInRole, lookup, registerResource, setRollbackOnly, setTransaction, touch, unregisterResource
      • Methods inherited from interface jakarta.ejb.EJBContext

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

      • 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()
        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
      • 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