2 Replies Latest reply on Mar 10, 2008 1:58 AM by Ken Clark

    Injecting a Stateless SB into another

    Ken Clark Newbie

      I need to use a stateless session bean from inside another stateless session bean, so I try to inject the second into the first.  However, I get this error:

      @In attribute requires non-null value: productAction.NodeLoader

      Here are snippets of the two SBs:

      public class ProductAction implements ProductActionLocal
          private EntityManager em;
          private Log log;
          private List<Node> topProducts = null;
      // I also tried @In(value="nodeLoader")
          private NodeLoaderLocal nodeLoader;

      public class NodeLoader implements NodeLoaderLocal

      What am I doing wrong?

      ken clark