-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
8.0.0.CR1
-
None
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.