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
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
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