2 Replies Latest reply on Sep 6, 2012 8:55 AM by ochaloup

    Remove EJB-ref from old applications ?


      Hi all !

      I have an older Java EE 5 application which is made up of EJB 3 (placed in a jar file) and a Web application. The web application is bundled in an EAR file.

      The web.xml file contains references to the EJB files:









      and jboss-web.xml contains as well references to EJB files:







      Now I'm going to port this application to JBoss 7: does it make sense to remove all ejb-refs both in web.xml and jboss-web.xml and replace the Context lookup with with injection ?





      Will this work both if the EJB is a remote and if it's a local one ?