[jboss-cvs] JBossAS SVN: r99189 - branches/JBPAPP_4_2_0_GA_CP/system/src/main/org/jboss.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sun Jan 10 17:00:10 EST 2010
Author: rachmatowicz at jboss.com
Date: 2010-01-10 17:00:10 -0500 (Sun, 10 Jan 2010)
New Revision: 99189
Modified:
branches/JBPAPP_4_2_0_GA_CP/system/src/main/org/jboss/Main.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 13:54:11 UTC (rev 99188)
+++ branches/JBPAPP_4_2_0_GA_CP/system/src/main/org/jboss/Main.java 2010-01-10 22:00:10 UTC (rev 99189)
@@ -457,9 +457,6 @@
System.setProperty("java.rmi.server.hostname", rmiHost);
}
- // create a version of the bind address which can be used in URLs
- System.setProperty("jboss.bind.url.address", ServerConfigUtil.fixHostnameForURL(arg)) ;
-
break;
case 'g':
arg = getopt.getOptarg();
@@ -496,6 +493,10 @@
{
System.setProperty("java.rmi.server.hostname", "127.0.0.1");
}
+
+ // 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)) ;
}
/**
More information about the jboss-cvs-commits
mailing list