[wsas-java-dev] svn commit r9753 - branches/wsas/java/2.1/wsas/java/modules/core/src/org/wso2/wsas

svn at wso2.org svn at wso2.org
Wed Nov 14 03:03:41 PST 2007


Author: azeez
Date: Wed Nov 14 03:03:38 2007
New Revision: 9753

Modified:
   branches/wsas/java/2.1/wsas/java/modules/core/src/org/wso2/wsas/MainServlet.java
Log:
Provide the IP address to Tribes



Modified: branches/wsas/java/2.1/wsas/java/modules/core/src/org/wso2/wsas/MainServlet.java
==============================================================================
--- branches/wsas/java/2.1/wsas/java/modules/core/src/org/wso2/wsas/MainServlet.java	(original)
+++ branches/wsas/java/2.1/wsas/java/modules/core/src/org/wso2/wsas/MainServlet.java	Wed Nov 14 03:03:38 2007
@@ -212,6 +212,10 @@
         System.setProperty(ServerConstants.DERBY_HOME,
                            new File(serverConfig.getFirstProperty(
                                    "Database.Home")).getAbsolutePath());
+        String hostName = ServerConfiguration.getInstance().getFirstProperty("HostName");
+        if(hostName != null && hostName.trim().length() != 0){
+            System.setProperty("local.ip.address", hostName); // TODO: This should be changed to System.setProperty(ClusteringConstants.LOCAL_IP_ADDRESS, hostName)  once we switch back to the Axis2 trunk
+        }
         serverManager.adminResourceBase = servletContext.getRealPath(".");
         if (serverManager.adminResourceBase == null) {
             serverManager.adminResourceBase = "TODO"; //TODO: Get the path to the resource base. Handle unexpanded case.




More information about the Wsas-java-dev mailing list