[cdi-dev] [JBoss JIRA] (CDI-179) Relax requirements for obtaining a BeanManager reference from JNDI

Stuart Douglas (Commented) (JIRA) jira-events at lists.jboss.org
Wed Oct 26 07:18:45 EDT 2011


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

Stuart Douglas commented on CDI-179:
------------------------------------

The only thing that I think we can really do with this is set up a java:global binding that follows a similar format to ejb portable JNDI syntax:

java:global:appname/moduleName/BeanManager

The CDI spec does not really have the scope to expand the java:comp namespace.
                
> Relax requirements for obtaining a BeanManager reference from JNDI
> ------------------------------------------------------------------
>
>                 Key: CDI-179
>                 URL: https://issues.jboss.org/browse/CDI-179
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>          Components: Portable Extensions
>    Affects Versions: 1.0
>            Reporter: Jozef Hartinger
>             Fix For: TBD
>
>
> The spec says:
> {quote}Java EE components may obtain an instance of BeanManager from JNDI by looking up the name java:comp/BeanManager.{quote}
> This is limiting since extensions often need to get a BeanManager reference from a *non-EE* component, e.g.:
> * https://github.com/seam/solder/blob/develop/impl/src/main/java/org/jboss/solder/beanManager/DefaultJndiBeanManagerProvider.java
> * https://resteasy.svn.sourceforge.net/svnroot/resteasy/trunk/jaxrs/resteasy-cdi/src/main/java/org/jboss/resteasy/cdi/CdiInjectorFactory.java

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the cdi-dev mailing list