1 Reply Latest reply on Nov 10, 2005 2:50 PM by starksm64

    What is the Bind address

      We are missing a piece of configuraton.

      Currently, the jboss.bind.address is always set to 0.0.0.0 by default.
      It would have been better to have

      ${jboss.bind.address:0.0.0.0}
      

      in the configurations, but that is an accident of history and probably
      unfixable?

      This makes the configuration in hajndi-jms-ds.xml impossible:
      java.naming.provider.url=${jboss.bind.address:localhost}:1100
      

      because this gets 0.0.0.0:1100

      This just happens to work as intended, but it would be better if this could be
      supported more explicitly.

      Related JIRA issue:
      http://jira.jboss.com/jira/browse/JBAS-2398

        • 1. Re: What is the Bind address
          starksm64

          It is a mistake to be defaulting the jboss.bind.address to the unpredictable semantics any address of 0.0.0.0 in the Main startup:

           props.setProperty(ServerConfig.SERVER_BIND_ADDRESS, "0.0.0.0");
           System.setProperty(ServerConfig.SERVER_BIND_ADDRESS, "0.0.0.0");
          


          We just have to turnaround and detect this in various places and revert it to some other default value like the server hostname or java.rmi.server.host, etc. The mapping done in org.jboss.system.server.ServerConfigUtil already deals with a null value as equivalent to "0.0.0.0", so removal of the hard-coded "0.0.0.0" should be reaonable. The only question is whether the system.server package is the correct place for this utility class.