[jboss-jira] [JBoss JIRA] Closed: (JBAS-6075) Injection of EJBs into JSF backing beans does not work, when Local or Remote annotation is on the bean instead of the interface
Stefan Ocke (JIRA)
jira-events at lists.jboss.org
Mon Oct 13 15:19:21 EDT 2008
[ https://jira.jboss.org/jira/browse/JBAS-6075?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Ocke closed JBAS-6075.
-----------------------------
Resolution: Cannot Reproduce Bug
Sorry. My analysis was wrong. In fact, dependency injection does not work at all with my ear. Will take a deeper look to find out why. (however: with other App servers, my ear does work...)
> Injection of EJBs into JSF backing beans does not work, when Local or Remote annotation is on the bean instead of the interface
> -------------------------------------------------------------------------------------------------------------------------------
>
> Key: JBAS-6075
> URL: https://jira.jboss.org/jira/browse/JBAS-6075
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: EJB3
> Affects Versions: JBossAS-5.0.0.CR2
> Reporter: Stefan Ocke
> Assignee: Carlo de Wolf
> Priority: Critical
>
> In 5.0.0.CR2, @EJB annotations in JSF backing beans (and servlets) seem to work in general. But, for getting this working, it seems to be required, that @Local or @Remote annotations are always on the (local or remote) interface.
> In opposite, the following does not work:
> @Stateless
> @Local(ShopServiceLocal.class)
> @Remote(ShopServiceRemote.class)
> public class ShopServiceBean implements ShopServiceLocal, ShopServiceRemote { ...}
> In this case, the @EJB annotated fields in a JSF backing bean are null.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list