1 Reply Latest reply on Aug 6, 2007 11:24 AM by Andrew Rubinger

    @EJB injection with Struts2

    prevsetko prevsetko Newbie

      Hi,
      I have problem with @EJB injection in Struts action. Using context.lookup works.

      import javax.ejb.EJB;
      
      public class ProjectListAction {
      
       @EJB
       ProjectBean projectBean;
      ....
      

      projectBean remains null. Should it works also in struts?


      I am using JBoss AS 4.2 GA, <web-app ... version="2.5">