3 Replies Latest reply on Jun 9, 2009 4:23 AM by maxime thozac

    Injecting EJB in JSF Beans

    ermes martino Newbie

      Hi all,
      I have deployed an application on JBoss 5 where my EJBs are injected into my JSF Managed Beans.

      I need to fill some comboboxes from the Constructor of the JSF Beans, however in the Constructor in the EJB injection still hasn't happened.
      Is it a bug ? any workaround ?

      public class JSFBean {
       ArrayList list;
       @EJB(mappedName = "AppEJB/local")
       private ApplicationManager ejb;
       public JSFBean () {
       list = ejb.populateCombo(param1);
       . . . . .

      The injected resource (ejb) is null in the constructor but in other methods is correctly injected.