[jboss-jira] [JBoss JIRA] (WFLY-2540) EntityListener CDI Injection does not work
Jens Schumann (JIRA)
jira-events at lists.jboss.org
Tue Nov 19 14:31:07 EST 2013
[ https://issues.jboss.org/browse/WFLY-2540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12925057#comment-12925057 ]
Jens Schumann commented on WFLY-2540:
-------------------------------------
It's fine with me. Let's see whether qualified Instance<Service> is covered by WFLY-2387 too;).
> EntityListener CDI Injection does not work
> -------------------------------------------
>
> Key: WFLY-2540
> URL: https://issues.jboss.org/browse/WFLY-2540
> Project: WildFly
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: CDI / Weld, JPA / Hibernate
> Affects Versions: 8.0.0.CR1
> Reporter: Jens Schumann
> Assignee: Stuart Douglas
> Attachments: simple_inject.tar
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list