Author: ron.sigal(a)jboss.com
Date: 2008-03-14 17:47:33 -0400 (Fri, 14 Mar 2008)
New Revision: 3643
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/stream/StreamingConnectorTestClient.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/stream/StreamingConnectorTestClient.java
===================================================================
---
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/stream/StreamingConnectorTestClient.java 2008-03-14
21:42:49 UTC (rev 3642)
+++
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/stream/StreamingConnectorTestClient.java 2008-03-14
21:47:33 UTC (rev 3643)
@@ -20,7 +20,7 @@
private static String host = "localhost";
private static int port = 5400;
- private String locatorURI = StreamingConnectorTestClient.transport + "://" +
StreamingConnectorTestClient.host + ":" + StreamingConnectorTestClient.port;
+ private String locatorURI;
private Client remotingClient = null;
private File testFile = null;
private FileInputStream fileInput = null;
@@ -28,7 +28,7 @@
private boolean error = false;
private Connector connector = null;
- private String streamConnectorLocatorUri = transport + "://" + host +
":" + 5410;
+ private String streamConnectorLocatorUri;
public void testStream() throws Throwable
{
@@ -95,6 +95,8 @@
public void setUp() throws Exception
{
+ String bindAddr = System.getProperty("jrunit.bind_addr", host);
+ locatorURI = transport + "://" + bindAddr + ":" + port;
InvokerLocator locator = new InvokerLocator(locatorURI);
System.out.println("Calling remoting server with locator uri of: " +
locatorURI);
@@ -105,6 +107,8 @@
private void setupServer() throws Exception
{
+ String bindAddr = System.getProperty("jrunit.bind_addr", host);
+ streamConnectorLocatorUri = transport + "://" + bindAddr + ":"
+ 5410;
connector = new Connector(streamConnectorLocatorUri);
connector.create();
connector.start();
Show replies by date