This content has been marked as final. Show 2 replies
I have created an EE application with an ear deployment file containing an application.xml, a jar file containing the EJBs and a war file containing the web application. Automatic dependency injection of a session bean into a servlet or a JSF managed bean does not work. A manual JNDI lookup of the session bean works. Are EJB dependencies not automatically injected into web applications?
No. See http://jira.jboss.com/jira/browse/EJBTHREE-212
The implementation of EJB3 style injection in Tomcat is underway. Stay tuned.