Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-4588

@PreDestroy order violation JSR-345

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • Server
    • None

    Description

      Wildlfy 11.0.0
      Bean X with @Startup and @Singleton annotations make long running task, Y bean (also with @Startup and @Singleton) @DependsOn bean X. Hovewer, during container shutdown (Ctrl+C) bean X is destroying first and closing resources, causing bean Y fall to error.

      Expected behavior:
      JSR-345: The container ensures that all singleton session beans with which a singleton session bean has a DependsOn relationship are still available during the PreDestroy callback.
      So, bean Y must be destroyed first, then bean X.

      Attachments

        Activity

          People

            jmesnil1@redhat.com Jeff Mesnil
            idmitrieffv@gmail.com Igor Dmitriev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: