0 Replies Latest reply on Apr 18, 2018 1:48 PM by dbdbdb

    Wildfly 12 - Is it possible to configure Wildfly to start the deployments only after the conteiner is fully started?

    dbdbdb

      Hi,

       

      Is there a configuration to do that?

      I'm migrating some projects from Wildfly 10 to Wildfly 12 and appears that Wildfly is invoking @Startup, @WebListener and (@Observes @Initialized(ApplicationScoped.class)) before the container initialized it's components.

       

      Ex:

      I'm unable to perform a remote EJB lookup at these points (Affinity is None error).

       

      Sometimes (it's intermitent) this Observes is fired with null (proxy with null reference) parameter:

      public void observesContext(@Observes @Initialized(ApplicationScoped.class) ServletContext context) {

         this.context = context;

      }

       

      But these errors only occurs when the application is started together with the container.

      If I launch the container without any application and then deploy the application evething works fine.

       

      thanks!