[jboss-remoting-commits] JBoss Remoting SVN: r3647 - remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/multicast.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Fri Mar 14 22:56:09 EDT 2008


Author: ron.sigal at jboss.com
Date: 2008-03-14 22:56:08 -0400 (Fri, 14 Mar 2008)
New Revision: 3647

Modified:
   remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/multicast/MulticastUnitTestCase.java
Log:
JBREM-930: Uses value of System property "jrunit.bind_addr" instead of "localhost".

Modified: remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/multicast/MulticastUnitTestCase.java
===================================================================
--- remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/multicast/MulticastUnitTestCase.java	2008-03-15 02:52:45 UTC (rev 3646)
+++ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/multicast/MulticastUnitTestCase.java	2008-03-15 02:56:08 UTC (rev 3647)
@@ -38,6 +38,7 @@
 import javax.management.ObjectName;
 import javax.xml.parsers.DocumentBuilderFactory;
 import java.io.ByteArrayInputStream;
+import java.net.InetAddress;
 import java.util.ArrayList;
 
 /**
@@ -216,7 +217,9 @@
          System.out.println("port = " + port);
 
 
-         InvokerLocator locator = new InvokerLocator("socket://localhost:" + port);
+         String host = InetAddress.getLocalHost().getHostAddress();
+         String bindAddr = System.getProperty("jrunit.bind_addr", host);
+         InvokerLocator locator = new InvokerLocator("socket://" + bindAddr + ":" + port);
          StringBuffer buf = new StringBuffer();
          buf.append("<?xml version=\"1.0\"?>\n");
          buf.append("<handlers>\n");




More information about the jboss-remoting-commits mailing list