6 Replies Latest reply on May 4, 2006 8:59 AM by yakamax

    Injecting EJB into JSF Managed Bean

    yakamax

      Hello

      I have read that one can use the @EJB annotation inside a JSF managed bean to inject a reference to an EJB 3.0 session EJB, but when I try it my Local Interface is null.


      public class UserManagedBean {
      
       @EJB
       UserManagerLocal userManagerLocal;
      
      ...
      


      It's OK when I lookup() in this JSF Managed Bean but with @EJB annotation, userManagerLocal is NULL.

      No error or warning in deployment.


      > Any ideas? Setter is necessary ?


      Thanks in advance