5 Replies Latest reply on Apr 26, 2002 1:55 PM by Adrian Brock

    Unable to do a jndi lookup from remote client

    norm Newbie

      Hello,

      My client code works fine when I am running from the local machine that the jboss server is running on.

      I am unable to lookup any object when I try to run the client app from a remote machine. Here is my code for establishing a context.

      Hashtable prop=new Hashtable();
      prop.put("java.naming.factory.initial" , "org.jnp.interfaces.NamingContextFactory");
      prop.put("java.naming.factory.url","jnp://x.x.x.x:1099");
      prop.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");
      prop.put("java.naming.rmi.security.manager", "no");
      prop.put(Context.URL_PKG_PREFIXES, "org.jboss.naming");
      prop.put(Context.PROVIDER_URL, "jnp://x.x.x.x:1099");

      Context jndiContext=new InitialContext(prop);

      When I do a jndi lookup of any object I get a NamingException of "null";

      The JBoss admin guide is no help at all.
      Maybe I'm overlooking something.

      Norm