[jboss-remoting-commits] JBoss Remoting SVN: r3649 - remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/multicast/startup.
jboss-remoting-commits at lists.jboss.org
jboss-remoting-commits at lists.jboss.org
Fri Mar 14 22:59:58 EDT 2008
Author: ron.sigal at jboss.com
Date: 2008-03-14 22:59:58 -0400 (Fri, 14 Mar 2008)
New Revision: 3649
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/multicast/startup/MulticastDetectorServer.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/startup/MulticastDetectorServer.java
===================================================================
--- remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/multicast/startup/MulticastDetectorServer.java 2008-03-15 02:58:51 UTC (rev 3648)
+++ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/multicast/startup/MulticastDetectorServer.java 2008-03-15 02:59:58 UTC (rev 3649)
@@ -21,6 +21,8 @@
*/
package org.jboss.test.remoting.detection.multicast.startup;
+import java.net.InetAddress;
+
import org.apache.log4j.Level;
import org.jboss.jrunit.extensions.ServerTestCase;
import org.jboss.remoting.InvokerLocator;
@@ -58,7 +60,9 @@
int port = TestUtil.getRandomPort();
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);
System.out.println("Starting remoting server with locator uri of: " + locator.getLocatorURI());
connector = new Connector();
More information about the jboss-remoting-commits
mailing list