Author: ron.sigal(a)jboss.com
Date: 2008-04-29 21:18:21 -0400 (Tue, 29 Apr 2008)
New Revision: 4095
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/jndi/startup/JNDIDetectorServer.java
Log:
JBREM-930: Returned to previous version.
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/jndi/startup/JNDIDetectorServer.java
===================================================================
---
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/jndi/startup/JNDIDetectorServer.java 2008-04-30
00:09:36 UTC (rev 4094)
+++
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/jndi/startup/JNDIDetectorServer.java 2008-04-30
01:18:21 UTC (rev 4095)
@@ -54,13 +54,14 @@
// start JNDI server
int port = 1099;
String host = InetAddress.getLocalHost().getHostName();
- String bindAddr = System.getProperty("jrunit.bind_addr", host);
Main JNDIServer = new Main();
JNDIServer.setPort(port);
- JNDIServer.setBindAddress(bindAddr);
+ JNDIServer.setBindAddress(host);
JNDIServer.start();
- System.out.println("Started JNDI server on " + bindAddr + ":" +
port);
+ System.out.println("Started JNDI server on " + host + ":" +
port);
+ String detectorHost = InetAddress.getLocalHost().getHostName();
+
detector = new JNDIDetector();
detector.setCleanDetectionNumber(2);
@@ -75,6 +76,7 @@
port = TestUtil.getRandomPort();
System.out.println("port = " + port);
+ 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());
@@ -95,7 +97,7 @@
// set config info for detector and start it.
detector.setPort(detectorPort);
- detector.setHost(bindAddr);
+ detector.setHost(detectorHost);
detector.setContextFactory(contextFactory);
detector.setURLPackage(urlPackage);
detector.start();
Show replies by date