Author: ron.sigal(a)jboss.com
Date: 2008-03-14 22:58:51 -0400 (Fri, 14 Mar 2008)
New Revision: 3648
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/multicast/deadlock/MulticastDetectorClient.java
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/multicast/deadlock/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/deadlock/MulticastDetectorClient.java
===================================================================
---
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/multicast/deadlock/MulticastDetectorClient.java 2008-03-15
02:56:08 UTC (rev 3647)
+++
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/multicast/deadlock/MulticastDetectorClient.java 2008-03-15
02:58:51 UTC (rev 3648)
@@ -16,6 +16,8 @@
import javax.management.MBeanServer;
import javax.management.MBeanServerFactory;
import javax.management.ObjectName;
+
+import java.net.InetAddress;
import java.util.HashMap;
import java.util.Map;
@@ -77,7 +79,9 @@
remotingClient = new Client(serverLocator, config);
remotingClient.connect();
- String invokerLocatorurl = "sslsocket://localhost:8700";
+ String host = InetAddress.getLocalHost().getHostAddress();
+ String bindAddr = System.getProperty("jrunit.bind_addr", host);
+ String invokerLocatorurl = "sslsocket://" + bindAddr +
":8700";
connector = new Connector(invokerLocatorurl, config);
connector.create();
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/multicast/deadlock/MulticastDetectorServer.java
===================================================================
---
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/multicast/deadlock/MulticastDetectorServer.java 2008-03-15
02:56:08 UTC (rev 3647)
+++
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/multicast/deadlock/MulticastDetectorServer.java 2008-03-15
02:58:51 UTC (rev 3648)
@@ -17,6 +17,8 @@
import javax.management.MBeanServer;
import javax.management.MBeanServerFactory;
import javax.management.ObjectName;
+
+import java.net.InetAddress;
import java.util.HashMap;
import java.util.Map;
@@ -47,7 +49,9 @@
int port = TestUtil.getRandomPort();
System.out.println("port = " + port);
- InvokerLocator locator = new InvokerLocator("sslsocket://localhost:" +
port);
+ String host = InetAddress.getLocalHost().getHostAddress();
+ String bindAddr = System.getProperty("jrunit.bind_addr", host);
+ InvokerLocator locator = new InvokerLocator("sslsocket://" + bindAddr +
":" + port);
System.out.println("Starting remoting server with locator uri of: " +
locator.getLocatorURI());
Show replies by date