0 Replies Latest reply on Feb 19, 2009 9:38 AM by Frank Riedel

    Lookup to SessionContext

    Frank Riedel Newbie


      the lookup to SessionContext will fail with NameNotBoundException

      InitialContext ic = new InitialContext();
      SessionContext sctxLookup = (SessionContext) ic.lookup ("java:comp/env/SessionContext");

      I try this code in a Stateless SessionBean.
      Where is the problem?

      Need help.