Package com.sun.ejb

Interface ComponentContext

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void checkTimerServiceMethodAccess()
      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.
      Container getContainer()
      Get the Container instance which created this Context.
      Object getEJB()
      Get the EJB instance associated with this context.
      List getResourceList()
      Get the resources associated with this Context.
      jakarta.transaction.Transaction getTransaction()
      Get the Transaction object associated with this Context.
    • Method Detail

      • getEJB

        Object getEJB()
        Get the EJB instance associated with this context.
      • getContainer

        Container getContainer()
        Get the Container instance which created this Context.
      • getTransaction

        jakarta.transaction.Transaction getTransaction()
        Get the Transaction object associated with this Context.
      • checkTimerServiceMethodAccess

        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.
        Throws:
        IllegalStateException