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

@Dependent bean instance created through javax.enterprise.inject.spi.CDI not always destroyed during shutdown

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 11.0.0.Beta1
    • CDI / Weld
    • None

      Doing CDI.current().select(MyDependentBean.class) gives you a bean which might not always be correctly destroyed on shutdown.

      The spec does not clearly state what should happen with these instances but it makes sense to properly dispose of them on shutdown. See WELD-2413 for background information.

              manovotn Matěj Novotný
              manovotn Matěj Novotný
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: