[jboss-jira] [JBoss JIRA] Commented: (JBAS-6332) Injection from outside modules

Raul Piaggio (JIRA) jira-events at lists.jboss.org
Mon Sep 13 18:33:12 EDT 2010


    [ https://jira.jboss.org/browse/JBAS-6332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12550663#action_12550663 ] 

Raul Piaggio commented on JBAS-6332:
------------------------------------

In JBoss 5.1.0, this doesn't seem to work either when two EJBs are packaged standalone and one tries to inject a bean from the other one. This worked in 4.2.3.

It does work if mappedName is added to the @EJB annotation in the referrer bean, otherwise (bare @EJB annotation) deployment of the referrer fails with:
java.lang.NullPointerException
	at org.jboss.ejb3.proxy.factory.ProxyFactoryHelper.getRemoteAndBusinessRemoteInterfaces(ProxyFactoryHelper.java:598) ...

> Injection from outside modules
> ------------------------------
>
>                 Key: JBAS-6332
>                 URL: https://jira.jboss.org/browse/JBAS-6332
>             Project: JBoss Application Server
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>    Affects Versions: JBossAS-5.0.0.GA
>            Reporter: Carlo de Wolf
>            Priority: Minor
>             Fix For: TBD
>
>
> When a servlet is packaged standalone (outside ear) and an EJB is packaged standalone, the EJB can't be injected into the servlet without specifying a JNDI name somewhere.
> It would be nice to have the ability to inject beans from outside your own enterprise application.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list