0 Replies Latest reply on Feb 16, 2017 2:32 AM by Fatih isik

    EJB container initialized callback

    Fatih isik Newbie

      Hi all,

       

      We deploy our project as war or ear project according to project specification.

      On war deployment we can receive context initialized from ServletContextlistener. This listener indicates all startup singleton beans @PostConstruct methods are called by container. That was what we need.

       

      On ear deployment, we realized that ServletContextlistener is on another classloader and called regardless of all startup singleton beans @PostConstruct methods are called.

      So, how we can be notified by container after all startup singleton beans @PostConstruct methods are called.

       

      EAR deployments not isolated class loading behavior.

      Server : Wildfly-10.0.Final

      JDK: 1.8.u92

       

      Thanks in advance.