[jboss-remoting-commits] JBoss Remoting SVN: r3646 - remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/metadata.
jboss-remoting-commits at lists.jboss.org
jboss-remoting-commits at lists.jboss.org
Fri Mar 14 22:52:45 EDT 2008
Author: ron.sigal at jboss.com
Date: 2008-03-14 22:52:45 -0400 (Fri, 14 Mar 2008)
New Revision: 3646
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/metadata/MetadataTestCase.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/metadata/MetadataTestCase.java
===================================================================
--- remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/metadata/MetadataTestCase.java 2008-03-15 02:52:06 UTC (rev 3645)
+++ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/metadata/MetadataTestCase.java 2008-03-15 02:52:45 UTC (rev 3646)
@@ -40,6 +40,7 @@
import javax.management.ObjectName;
import javax.xml.parsers.DocumentBuilderFactory;
import java.io.ByteArrayInputStream;
+import java.net.InetAddress;
import java.util.List;
/**
@@ -132,9 +133,11 @@
//int port = Math.abs(new Random().nextInt(2000));
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);
+
StringBuffer buf = new StringBuffer();
buf.append("<?xml version=\"1.0\"?>\n");
buf.append("<handlers>\n");
More information about the jboss-remoting-commits
mailing list