[jboss-remoting-commits] JBoss Remoting SVN: r5958 - remoting2/branches/2.2/src/main/org/jboss/remoting/ident.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Mon Aug 2 16:48:27 EDT 2010


Author: ron.sigal at jboss.com
Date: 2010-08-02 16:48:26 -0400 (Mon, 02 Aug 2010)
New Revision: 5958

Modified:
   remoting2/branches/2.2/src/main/org/jboss/remoting/ident/Identity.java
Log:
JBREM-1235: Replaced call(s) to InetAddress.getLocalHost() with LocalHostUtil.getLocalHost().

Modified: remoting2/branches/2.2/src/main/org/jboss/remoting/ident/Identity.java
===================================================================
--- remoting2/branches/2.2/src/main/org/jboss/remoting/ident/Identity.java	2010-08-02 20:48:04 UTC (rev 5957)
+++ remoting2/branches/2.2/src/main/org/jboss/remoting/ident/Identity.java	2010-08-02 20:48:26 UTC (rev 5958)
@@ -22,6 +22,7 @@
 package org.jboss.remoting.ident;
 
 import org.jboss.remoting.network.NetworkRegistry;
+import org.jboss.remoting.util.LocalHostUtil;
 
 import javax.management.MBeanServer;
 import javax.management.ObjectName;
@@ -202,7 +203,7 @@
       try
       {
          String serverid = (String) server.getAttribute(new ObjectName("JMImplementation:type=MBeanServerDelegate"), "MBeanServerId");
-         Identity identity = new Identity(InetAddress.getLocalHost(), createId(server), serverid);
+         Identity identity = new Identity(LocalHostUtil.getLocalHost(), createId(server), serverid);
          identities.put(server, identity);
          return identity;
       }



More information about the jboss-remoting-commits mailing list