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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 8.1.0.CR1
    • Fix Version/s: 10.0.0.Alpha5
    • Component/s: CDI / Weld
    • Labels:
      None
    • Environment:

      Wildfly 8.0.0.Final, OpenJDK 1.7.0_45

      Description

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jharting Jozef Hartinger
                  Reporter:
                  daniell Daniel Lechner
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: