12 Replies Latest reply on Nov 13, 2007 8:12 AM by Pete Muir

    Using an EJB3 in seam

    German Castro Newbie

      I have 3 projects in RH studio:
      - A seam project
      - An ejb project
      - ear project that contains the others.

      I need call an ejb from seam project but when i do the jndi lookup it returns a null pointer.

      I use:

      @EJB TheBeanLocal bean

      and

      bean = (TheBeanLocal)ctx.lookup("project/TheBean/local");

      The lookup don't fails, but in both cases 'bean' is null.

      What could be wrong?