Lifecycle of EJBs

  • Stateful

    • Create
    • Dependency injection, if any
    • PostConstruct callback, if any
    • Init method, or ejbCreate<METHOD>, if any

    • EJB Stateful Lifecycle

    • Remove
    • PreDestroy callback, if any


  • Stateful


  • EJB Stateless Lifecycle

  • Singleton


  • Singleton Lifecycle

  • Message Driven Beans


  • Message Driven Bean Lifecycle