1 Reply Latest reply on Nov 8, 2004 2:02 PM by Jonathan Rajotte

    javax.naming.NameNotFoundException: ejb not bound

    Jonathan Rajotte Newbie


      I have a problem locating the home interface of my ejb. The beans seem to deploy without errors on the app server.

      Here is the code I use:

      private UserDetailHome lookupUser() throws NamingException {
       Context context = new InitialContext();
       Object objref = context.lookup("ejb/UserDetailLocal");
       return (UserDetailHome) PortableRemoteObject.narrow(objref, UserDetailHome.class);

      Please advice,