Event with qualifier @Initialized not raised if no webapp is
deployed
---------------------------------------------------------------------
Key: WFLY-3334
URL:
https://issues.jboss.org/browse/WFLY-3334
Project: WildFly
Issue Type: Bug
Components: CDI / Weld
Affects Versions: 8.1.0.CR1
Environment: Wildfly 8.0.0.Final, OpenJDK 1.7.0_45
Reporter: Daniel Lechner
Assignee: Jozef Hartinger
Fix For: 10.0.0.Alpha5
As stated in the CDI-specification (section 6.7.3. Application context lifecycle)
{quote}
An event with qualifier @Initialized(ApplicationScoped.class) is fired when the
application context is initialized and an event with qualifier
@Destroyed(ApplicationScoped.class) is fired when the application is destroyed.
{quote}
But in my environment this is only true, if the deployed application (packaged in an EAR)
contains a webapplication (as WAR inside the EAR). If there is no webapplication, the
event is not raised and observer-methods are not called at all.