Author: ron.sigal(a)jboss.com
Date: 2008-03-14 22:44:40 -0400 (Fri, 14 Mar 2008)
New Revision: 3644
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/jndi/JNDIDetectorTest1.java
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/jndi/JNDIDetectorTest2.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/jndi/JNDIDetectorTest1.java
===================================================================
---
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/jndi/JNDIDetectorTest1.java 2008-03-14
21:47:33 UTC (rev 3643)
+++
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/jndi/JNDIDetectorTest1.java 2008-03-15
02:44:40 UTC (rev 3644)
@@ -116,7 +116,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();
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/jndi/JNDIDetectorTest2.java
===================================================================
---
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/jndi/JNDIDetectorTest2.java 2008-03-14
21:47:33 UTC (rev 3643)
+++
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/jndi/JNDIDetectorTest2.java 2008-03-15
02:44:40 UTC (rev 3644)
@@ -73,7 +73,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();
Show replies by date