[jboss-cvs] JBossAS SVN: r99190 - in branches/JBPAPP_4_2_0_GA_CP/system/src/main/org/jboss: system/server and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Jan 10 17:10:04 EST 2010


Author: rachmatowicz at jboss.com
Date: 2010-01-10 17:10:03 -0500 (Sun, 10 Jan 2010)
New Revision: 99190

Modified:
   branches/JBPAPP_4_2_0_GA_CP/system/src/main/org/jboss/Main.java
   branches/JBPAPP_4_2_0_GA_CP/system/src/main/org/jboss/system/server/ServerConfig.java
Log:
Update method to set jboss.bind.url.address to work with no -b option (JBPAPP-3018)

Modified: branches/JBPAPP_4_2_0_GA_CP/system/src/main/org/jboss/Main.java
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/system/src/main/org/jboss/Main.java	2010-01-10 22:00:10 UTC (rev 99189)
+++ branches/JBPAPP_4_2_0_GA_CP/system/src/main/org/jboss/Main.java	2010-01-10 22:10:03 UTC (rev 99190)
@@ -496,7 +496,7 @@
       
       // JBPAPP-3018, create a version of the value of bind address which can be used in URLs
       String bindAddress = System.getProperty(ServerConfig.SERVER_BIND_ADDRESS) ;
-      System.setProperty("jboss.bind.url.address", ServerConfigUtil.fixHostnameForURL(bindAddress)) ;
+      System.setProperty(ServerConfig.SERVER_BIND_URL_ADDRESS, ServerConfigUtil.fixHostnameForURL(bindAddress)) ;
    }
 
    /**

Modified: branches/JBPAPP_4_2_0_GA_CP/system/src/main/org/jboss/system/server/ServerConfig.java
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/system/src/main/org/jboss/system/server/ServerConfig.java	2010-01-10 22:00:10 UTC (rev 99189)
+++ branches/JBPAPP_4_2_0_GA_CP/system/src/main/org/jboss/system/server/ServerConfig.java	2010-01-10 22:10:03 UTC (rev 99190)
@@ -212,6 +212,17 @@
     *
     */
    String SERVER_BIND_ADDRESS = "jboss.bind.address";
+   
+   /**
+    * Constant that holds the name of the environment property
+    * for specifying the form of the bind address for all jboss 
+    * services which can be used safely in URLs.
+    * e.g. jboss.bind.address -> jboss.bind.url.address 
+    * 127.0.0.1 -> 127.0.0.1
+    * ::1 -> [::1]
+    *
+    */
+   String SERVER_BIND_URL_ADDRESS = "jboss.bind.url.address";
 
    /**
     * Constant that holds the name of the environment property




More information about the jboss-cvs-commits mailing list