Re: [weld-dev] ApplicationScoped event fires on service invocation

2016-08-22 Thread Martin Kouba
Dne 21.8.2016 v 12:32 Mark Struberg napsal(a): > But the ServletContextEvent is available much earlier. > I think this might rather be an integration issue. ServletContext might be available earlier but Weld is using standard portable ServletContextListener API to be notified. In any case, the

Re: [weld-dev] ApplicationScoped event fires on service invocation

2016-08-21 Thread Mark Struberg
But the ServletContextEvent is available much earlier. I think this might rather be an integration issue. In OWB we don't fire the @Intialized for the ApplicationContext inside the ApplicationContext implementation but as part of the integration code, means TomEE, Geronimo, SAP, etc. The

Re: [weld-dev] ApplicationScoped event fires on service invocation

2016-08-19 Thread Martin Kouba
Hi Benjanmin, for a web application the payload of @Initialized(ApplicationScoped.class) must be the relevant ServletContext. That's why Weld is waiting for a webapp to be ready (implemented as javax.servlet.ServletContextListener.contextInitialized(ServletContextEvent)). Martin Dne