0 Replies Latest reply on Feb 20, 2007 7:35 PM by F B

    JBoss 4.0.4 - WAR class cannot find SessionBean through JNDI

    F B Newbie

      An ear is deployed with a WAR and EJB JAR file. The WAR contains the EJB jar file.

      A class, in the WAR, needs the Session bean defined below but cannot find it with a JNDI lookup.
      @Stateless(name="MyManager")

      WAR based class does:
      new InitialContext().lookup(name); but cannot find the session bean.

      I have tried lookup with many combinations of
      "java:comp/env/ejb/MyManager"
      "MyManager"
      "ejb/MyManager"

      How can the WAR based class get a reference to the session bean?