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

EntityListener CDI Injection does not work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 8.0.0.CR1
    • CDI / Weld, JPA / Hibernate
    • None

    Description

      This is a bug report for Wildfly 8.0.0.Beta2-SNAPSHOT downloaded yesterday.

      I tried to test CDI injection into entity listeners - and as far I can tell it does not work. In general it seems to work (I can inject a beanmanager), my custom services can't be injected.

      If I try to inject a service (@Default, "@Qualified", "Produced @Qualified") and Provider<Service> (@Default, "@Qualified", "Produced @Qualified") i get an "Argument resolvedBean must not be null". I I try to inject a Instance<Service> (@Default, "@Qualified", "Produced @Qualified") I get an "Unable to resolve any beans for Types: [interface javax.enterprise.inject.Instance]" with qualifier javax.enterprise.inject.Any even if I use @Default, "@Qualified", "Produced @Qualified".

      I will attach a simple demo web archive that shows that injection does work, however EntityListener injection does not work.

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            french_c Jens Schumann (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: