0 Replies Latest reply on May 18, 2007 5:27 AM by markbakker

    Problem accessing stateles bean from entity bean

      Hello,

      I try the following:
      I have an @Statefull bean with @Name("index")

      From with I call
      @In(value="#{profilerService}")
      private transient Profiler profiler;
      ProfilerService is an stateless bean

      From the ProfilerService I get an entity bean called Article.
      In the article I call some function that uses an stateless bean referenced as:
      @EJB
      private transient Profiler profiler;

      I also tried

      @In(value="#{profilerService}")

      Both give me null pointer exceptions when I call the profilerservice.
      Can someone give me a clue how to call an stateless bean from an entity bean?!

      Kind regards,

      Mark