Class EJBContextImpl

    • Field Detail

      • transaction

        protected transient jakarta.transaction.Transaction transaction
      • initialContext

        protected transient Context initialContext
      • ejbStub

        protected transient jakarta.ejb.EJBObject ejbStub
      • ejbRemoteBusinessObjectImpl

        protected transient EJBObjectImpl ejbRemoteBusinessObjectImpl
      • ejbLocalBusinessObjectImpl

        protected transient EJBLocalObjectImpl ejbLocalBusinessObjectImpl
      • optionalEjbLocalBusinessObjectImpl

        protected transient EJBLocalObjectImpl optionalEjbLocalBusinessObjectImpl
      • isRemoteInterfaceSupported

        protected boolean isRemoteInterfaceSupported
      • isLocalInterfaceSupported

        protected boolean isLocalInterfaceSupported
      • inEjbRemove

        protected transient boolean inEjbRemove
    • Method Detail

      • getTransaction

        public jakarta.transaction.Transaction getTransaction()
        Description copied from interface: ComponentContext
        Get the Transaction object associated with this Context.
        Specified by:
        getTransaction in interface ComponentContext
      • setTransaction

        public void setTransaction​(jakarta.transaction.Transaction tr)
      • getLastTimeUsed

        public long getLastTimeUsed()
      • touch

        public void touch()
      • registerResource

        public void registerResource​(ResourceHandle h)
        Register a resource opened by the EJB instance associated with this Context.
      • unregisterResource

        public void unregisterResource​(ResourceHandle h)
        Unregister a resource from this Context.
      • getConcurrentInvokeCount

        public int getConcurrentInvokeCount()
        Get the number of concurrent invocations on this bean (could happen with re-entrant bean). Used by TM.
      • incrementConcurrentInvokeCount

        public void incrementConcurrentInvokeCount()
        Increment the number of concurrent invocations on this bean (could happen with re-entrant bean). Used by TM.
      • decrementConcurrentInvokeCount

        public void decrementConcurrentInvokeCount()
        Decrement the number of concurrent invocations on this bean (could happen with re-entrant bean). Used by TM.
      • getEJBHome

        public jakarta.ejb.EJBHome getEJBHome()
        Specified by:
        getEJBHome in interface jakarta.ejb.EJBContext
      • getEJBLocalHome

        public jakarta.ejb.EJBLocalHome getEJBLocalHome()
        Specified by:
        getEJBLocalHome in interface jakarta.ejb.EJBContext
      • getEnvironment

        public Properties getEnvironment()
      • getCallerIdentity

        public Identity getCallerIdentity()
        Deprecated.
      • lookup

        public Object lookup​(String name)
        Specified by:
        lookup in interface jakarta.ejb.EJBContext
      • getCallerPrincipal

        public Principal getCallerPrincipal()
        Specified by:
        getCallerPrincipal in interface jakarta.ejb.EJBContext
      • getContextData

        public Map<String,​Object> getContextData()
        Specified by:
        getContextData in interface jakarta.ejb.EJBContext
        Returns:
        Returns the contextMetaData.
      • isCallerInRole

        public boolean isCallerInRole​(Identity identity)
        Deprecated.
      • isCallerInRole

        public boolean isCallerInRole​(String roleRef)
        Specified by:
        isCallerInRole in interface jakarta.ejb.EJBContext
      • checkAccessToCallerSecurity

        protected void checkAccessToCallerSecurity()
                                            throws IllegalStateException
        Overridden in containers that allow access to isCallerInRole() and getCallerPrincipal()
        Throws:
        IllegalStateException
      • getUserTransaction

        public jakarta.transaction.UserTransaction getUserTransaction()
                                                               throws IllegalStateException
        Specified by:
        getUserTransaction in interface jakarta.ejb.EJBContext
        Throws:
        IllegalStateException
      • doGetSetRollbackTxAttrCheck

        protected void doGetSetRollbackTxAttrCheck()
      • getInterceptorInstances

        public Object[] getInterceptorInstances()
      • checkTimerServiceMethodAccess

        public void checkTimerServiceMethodAccess()
                                           throws IllegalStateException
        The EJB spec makes a distinction between access to the TimerService object itself (via EJBContext.getTimerService) and access to the methods on TimerService, Timer, and TimerHandle. The latter case is covered by this check. It is overridden in the applicable concrete context impl subclasses.
        Specified by:
        checkTimerServiceMethodAccess in interface ComponentContext
        Throws:
        IllegalStateException
      • inActivatePassivate

        protected boolean inActivatePassivate()
      • getKey

        protected Object getKey()