[jboss-remoting-commits] JBoss Remoting SVN: r3642 - remoting2/branches/2.x/src/tests/org/jboss/test/remoting/stream.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Fri Mar 14 17:42:49 EDT 2008


Author: ron.sigal at jboss.com
Date: 2008-03-14 17:42:49 -0400 (Fri, 14 Mar 2008)
New Revision: 3642

Modified:
   remoting2/branches/2.x/src/tests/org/jboss/test/remoting/stream/StreamingTestClient.java
   remoting2/branches/2.x/src/tests/org/jboss/test/remoting/stream/StreamingTestServer.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/StreamingTestClient.java
===================================================================
--- remoting2/branches/2.x/src/tests/org/jboss/test/remoting/stream/StreamingTestClient.java	2008-03-14 20:39:08 UTC (rev 3641)
+++ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/stream/StreamingTestClient.java	2008-03-14 21:42:49 UTC (rev 3642)
@@ -41,7 +41,7 @@
    private static String host = "localhost";
    private static int port = 5400;
 
-   private String locatorURI = transport + "://" + host + ":" + port;
+   private String locatorURI;
    private Client remotingClient = null;
    private File testFile = null;
    private FileInputStream fileInput = null;
@@ -117,6 +117,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);
 

Modified: remoting2/branches/2.x/src/tests/org/jboss/test/remoting/stream/StreamingTestServer.java
===================================================================
--- remoting2/branches/2.x/src/tests/org/jboss/test/remoting/stream/StreamingTestServer.java	2008-03-14 20:39:08 UTC (rev 3641)
+++ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/stream/StreamingTestServer.java	2008-03-14 21:42:49 UTC (rev 3642)
@@ -46,11 +46,13 @@
    private static String host = "localhost";
    private static int port = 5400;
 
-   private String locatorURI = transport + "://" + host + ":" + port;
+   private String locatorURI;
    private Connector connector = null;
 
    public void setupServer() throws Exception
    {
+      String bindAddr = System.getProperty("jrunit.bind_addr", host);
+      locatorURI = transport + "://" + bindAddr + ":" + port; 
       InvokerLocator locator = new InvokerLocator(locatorURI);
       System.out.println("Starting remoting server with locator uri of: " + locatorURI);
       connector = new Connector();




More information about the jboss-remoting-commits mailing list