8 Replies Latest reply on Nov 28, 2002 1:51 PM by Harald

    Info on changing the localhost to name

    Kristof Van Cleemput Newbie

      Our app runs great on 2.4.4 and 3.0.4 if both are on the same machine. For the 2.4.4 I can do it on seperate machines but on te new one I can't seem to find it.

      In the jboss 2.4.x there was a jboss properties file.
      Here you could change the java.rmi.server.hostname to a name instead of localhost.

      Due to the fact that this file no longer exists I can't change it anymore.

      There are some threads about this but none of them are giving a real solution.

      How can I make sure that some app on a tomcat server can access the jboss server 3.0.x on an other machine.

      Is there some service I have to change/include?
      Or do I have to do something else?

      The lookup occurs like this and i want to change the localhost to a servername
      Properties prop = new Properties();
      prop.setProperty("java.naming.factory.initial",
      "org.jnp.interfaces.NamingContextFactory");
      ("java.naming.provider.url","localhost:1099");
      prop.setProperty("java.naming.factory.url.pkgs",
      "org.jboss.naming:org.jnp.interfaces");
      InitialContext jndiContext = new InitialContext(prop);

      THanks

      Regards

      Kristof