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