2 Replies Latest reply on Jun 1, 2006 7:04 PM by bdecoste

    Dependency Injection Problem

    guidomuelleraventis

      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?

        • 1. Re: Dependency Injection Problem
          sateh

           

          "guidomuelleraventis" wrote:
          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

          S.


          • 2. Re: Dependency Injection Problem
            bdecoste

            The implementation of EJB3 style injection in Tomcat is underway. Stay tuned.