1 Reply Latest reply on Jun 4, 2011 10:32 AM by jaikiran

    JBoss 6.0: EJB injection in JSP

    wolfgangknauf

      Hi,

       

      I have a small EJB app, where an EJB is injected in a JSP:

       

      <%!

       

        @EJB()

        GeometricModelRemote geometricModel;

       

        @EJB(mappedName="Stateless/GeometricModelBean/local")

        GeometricModelLocal geometricModelLocal;

      %>

       

      (the mapped name for the local interface is required because of https://issues.jboss.org/browse/JBAS-6054 )

       

      This EJB injection fails since 6.0, the "geometricModel" interface is null. It worked for AS5.x

       

      The sample can be found here (Jaikiran, you probably know it ;-)): http://www.cs.hs-rm.de/~knauf/KomponentenArchitekturen2008/stateless/Stateless.ear

       

      Was there some change? Is EJB injection in JSPs no longer supported?

       

      Best regards

       

      Wolfgang