2 Replies Latest reply on Dec 11, 2002 7:12 AM by Stefan Ernst

    RMI lookup for cluster nodes

    Stefan Ernst Newbie

      Hi!

      When I have two or three JBoss instances running on one machine, how can I
      make the InitialContext.lookup() find a distinguished one of them? The lookup
      example from the doku only uses the server name which is obviously the same
      for all instances.

      serverName = InetAddress.getLocalHost().getHostName();
      RMIAdaptor server = (RMIAdaptor) ic.lookup("jmx:" +serverName+ ":rmi");

      Is there a way to use the NamingService port (i.e. 1099 or the numbers configured
      for the other instances) for a selected lookup?


      Thanks a lot

      Stefan