geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r693458 - /geronimo/server/trunk/plugins/clustering/geronimo-farm/src/main/java/org/apache/geronimo/farm/config/BasicExtendedJMXConnectorInfo.java
Date Tue, 09 Sep 2008 13:15:25 GMT
Author: djencks
Date: Tue Sep  9 06:15:24 2008
New Revision: 693458

URL: http://svn.apache.org/viewvc?rev=693458&view=rev
Log:
GERONIMO-4284 remove unneeded host name substitution

Modified:
    geronimo/server/trunk/plugins/clustering/geronimo-farm/src/main/java/org/apache/geronimo/farm/config/BasicExtendedJMXConnectorInfo.java

Modified: geronimo/server/trunk/plugins/clustering/geronimo-farm/src/main/java/org/apache/geronimo/farm/config/BasicExtendedJMXConnectorInfo.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/clustering/geronimo-farm/src/main/java/org/apache/geronimo/farm/config/BasicExtendedJMXConnectorInfo.java?rev=693458&r1=693457&r2=693458&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/clustering/geronimo-farm/src/main/java/org/apache/geronimo/farm/config/BasicExtendedJMXConnectorInfo.java
(original)
+++ geronimo/server/trunk/plugins/clustering/geronimo-farm/src/main/java/org/apache/geronimo/farm/config/BasicExtendedJMXConnectorInfo.java
Tue Sep  9 06:15:24 2008
@@ -70,13 +70,6 @@
         return host;
     }
 
-    public String getUsableHost() {
-        if ("0.0.0.0".equals(host)) {
-            return "localhost";
-        }
-        return host;
-    }
-
     @DoNotPersist
     public InetSocketAddress getListenAddress() {
         return new InetSocketAddress(host, port);
@@ -150,8 +143,8 @@
     }
 
     protected String getJmxURI() {
-        return "service:jmx:rmi://" + getUsableHost() + "/jndi/"
-                        + getProtocol() + "://" + getUsableHost() + ":"
+        return "service:jmx:rmi://" + getHost() + "/jndi/"
+                        + getProtocol() + "://" + getHost() + ":"
                         + getPort() + "/" + getUrlPath();
 
     }



Mime
View raw message