[cdi-dev] [JBoss JIRA] Commented: (CDI-147) Are EJB's not deployed in a bean archive eligible for CDI injection

Pete Muir (JIRA) jira-events at lists.jboss.org
Tue Sep 6 09:21:26 EDT 2011

    [ https://issues.jboss.org/browse/CDI-147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12626450#comment-12626450 ] 

Pete Muir commented on CDI-147:

Stuart, this is the intent of the CDI spec, however the Java EE spec overrules it and says that it should only happen in bean archives.

I'm not sure how we can really make this clearer. I will talk to Bill and Linda.

> Are EJB's not deployed in a bean archive eligible for CDI injection
> -------------------------------------------------------------------
>                 Key: CDI-147
>                 URL: https://issues.jboss.org/browse/CDI-147
>             Project: CDI Specification Issues
>          Issue Type: Clarification
>    Affects Versions: 1.0
>            Reporter: Stuart Douglas
>             Fix For: 1.1 (Proposed)
> If an EJB is deployed in an ejb-jar without a beans.xml, is this EJB eligible for CDI injection of beans deployed in other modules?
> The spec says:
> "The container performs dependency injection on all session and message-driven bean instances, even those which are not
> contextual instances."
> To me this sounds like the intent was to allow injection into EJB's looked up from JNDI, does this also mean that EJB's in non bean archives should also be injected? 

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the cdi-dev mailing list