2 Replies Latest reply on Feb 9, 2010 2:26 AM by blintsosvkiy

    @EJB injection in JSF1.2 (JBOSS 5)

    blintsosvkiy

      Hello,

       

      There is  a jar-file with EJB-stateless session beans  and  WAR-file with JSF (JSP-  and backed-bean files are in it).  They both packaged standalone.   Firstly,  I deploy jar-file,  then  war-file.

       

      I have tried to inject   @EJB  injection of  a session bean (which is in the jar-file) into a backed bean (which is in the war-file). But there were errors during  war-file  deployment.  As far as I know,  it was impossible to make use of  @EJB  injection, if  EJB-beans and JSF were in different standalone (not in the same ear-file)  files.   But, maybe, it's possible to do it in JBOSS 5?

       

      Thank you in advance for your fast responce.

        • 1. Re: @EJB injection in JSF1.2 (JBOSS 5)
          jaikiran

          There is  a jar-file with EJB-stateless session beans  and  WAR-file with JSF (JSP-  and backed-bean files are in it).  They both packaged standalone.

          ...

          I have tried to inject   @EJB  injection of  a session bean (which is in the jar-file) into a backed bean (which is in the war-file). But there were errors during  war-file  deployment.  As far as I know,  it was impossible to make use of  @EJB  injection, if  EJB-beans and JSF were in different standalone (not in the same ear-file)  files.

           

          That's not available in JBoss AS-5 https://jira.jboss.org/jira/browse/JBAS-6332

          • 2. Re: @EJB injection in JSF1.2 (JBOSS 5)
            blintsosvkiy
            Thank you for your link, jaikiran pai. Thus  this feature will work in JBOSS AS 6. Thanks a lot again.