Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-3334

Event with qualifier @Initialized not raised if no webapp is deployed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 10.0.0.Alpha5
    • 8.1.0.CR1
    • CDI / Weld
    • None

      As stated in the CDI-specification (section 6.7.3. Application context lifecycle)

      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.

      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.

              rhn-engineering-jharting Jozef Hartinger
              daniell_jira Daniel Lechner (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: