[jboss-cvs] JBossAS SVN: r66869 - branches/Branch_4_2/system/src/main/org/jboss.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Nov 8 11:54:18 EST 2007


Author: adrian at jboss.org
Date: 2007-11-08 11:54:18 -0500 (Thu, 08 Nov 2007)
New Revision: 66869

Modified:
   branches/Branch_4_2/system/src/main/org/jboss/Main.java
Log:
[JBAS-4955] - Set known bind address properties to jboss.bind.address when not explicitly configured

Modified: branches/Branch_4_2/system/src/main/org/jboss/Main.java
===================================================================
--- branches/Branch_4_2/system/src/main/org/jboss/Main.java	2007-11-08 16:51:37 UTC (rev 66868)
+++ branches/Branch_4_2/system/src/main/org/jboss/Main.java	2007-11-08 16:54:18 UTC (rev 66869)
@@ -482,12 +482,12 @@
          }
       }
 
-      // JBAS-4119, set the java.rmi.server.hostname if not set
+      // Fix up other bind addresses
+      String bindAddress = System.getProperty(ServerConfig.SERVER_BIND_ADDRESS);
       if (System.getProperty("java.rmi.server.hostname") == null)
-      {
-         System.setProperty("java.rmi.server.hostname", "127.0.0.1");
-      }
-   }
+         System.setProperty("java.rmi.server.hostname", bindAddress);
+      if (System.getProperty("jgroups.bind_addr") == null)
+         System.setProperty("jgroups.bind_addr", bindAddress);   }
 
    /**
     * This is where the magic begins.




More information about the jboss-cvs-commits mailing list