0 Replies Latest reply on Apr 8, 2002 10:28 PM by lamh

    Naming Service Problem

      Hi all,

      I have a JBOSS 3.0 beta running with a simple bean deployed. I have a simple client program running on the localhost to create the bean and access the bean. Everything works ok. If the client is running remotely, I get the following error:

      javax.naming.CommunicationException. Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
      java.net.ConnectException: Connection refused: no further information

      java.net.ConnectException: Connection refused: no further information


      I have the InitialContext properties set up in the following way. 192.168.1.153 is the server host and the server has no port restriction:

      Properties prop = new Properties();
      prop.put(Context.INITIAL_CONTEXT_FACTORY,
      "org.jnp.interfaces.NamingContextFactory");
      prop.put(Context.PROVIDER_URL, "jnp://192.168.1.153:1099");
      return new InitialContext(prop);

      I tried it on two different client machines and none of them worked. Any idea what went wrong???!!!