2 Replies Latest reply on Feb 15, 2013 11:06 AM by Maciej Swiderski

    AfterDeploymentValidation not fired in hosted mode

    Maciej Swiderski Master



      I need to react on an event that informs that complete application startup is finished to bootstrap application before it is used to avoid first request delay. For that I used AfterDeploymentValidation event and CDI extension that is fired when CDI completes initialization and that works well on JBoss AS7 but unfortunately this event is not fired when running in hosted mode. I think this is due to valdiation phase on CDI deployment is disabled by errai CDI listener that is defined in web.xml instead of default weld listener.


      I followed this example on how to make CDI bean to start up during application start.


      Tried to listen on weld se events like ContainerInitialized but that was not fired either. So question is is there any other event that application can listen to to be notified when application is started that will work on both AS7 and hosted mode? Maybe there are some errai events that could be of use here.


      Thanks a lot for help