3 Replies Latest reply on Nov 28, 2005 11:20 AM by kabirkhan

    EJB injection

    pipothebit

      Hi,
      i am trying to use ejb anootation to inject a stateless session bean into a jsf bean, my code looks like:

      public class IndexBean {
      private @EJB SimpleSession s;
      ...
      public String onclick() {
      s.doIt();
      return null;
      }
      ....

      when i execute that code i get a nullpointerexception.

      can someone help me?
      thx