[jboss-cvs] JBossAS SVN: r109592 - branches/JBoss-AS-6.0.x-ipv6/testsuite/src/main/org/jboss/test/hellojrmpiiop/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Nov 30 17:59:21 EST 2010


Author: rachmatowicz at jboss.com
Date: 2010-11-30 17:59:20 -0500 (Tue, 30 Nov 2010)
New Revision: 109592

Modified:
   branches/JBoss-AS-6.0.x-ipv6/testsuite/src/main/org/jboss/test/hellojrmpiiop/test/HelloTimingStressTestCase.java
Log:
Fix URL generation in HelloTimingStressTestCase (JBAS-8540)

Modified: branches/JBoss-AS-6.0.x-ipv6/testsuite/src/main/org/jboss/test/hellojrmpiiop/test/HelloTimingStressTestCase.java
===================================================================
--- branches/JBoss-AS-6.0.x-ipv6/testsuite/src/main/org/jboss/test/hellojrmpiiop/test/HelloTimingStressTestCase.java	2010-11-30 22:55:51 UTC (rev 109591)
+++ branches/JBoss-AS-6.0.x-ipv6/testsuite/src/main/org/jboss/test/hellojrmpiiop/test/HelloTimingStressTestCase.java	2010-11-30 22:59:20 UTC (rev 109592)
@@ -59,18 +59,19 @@
    {
       super(name);
       URL url;
-      String host = System.getProperty("jbosstest.server.host", "localhost");
+      // JBAS-8540
+      String hostForURL = getServerHostForURL();
 
       url = ClassLoader.getSystemResource("iiop.jndi.properties");
       iiopJndiProps = new java.util.Properties();
       iiopJndiProps.load(url.openStream());
-      String jnp = "jnp://"+host+":1099/iiop";
+      String jnp = "jnp://"+hostForURL+":1099/iiop";
       iiopJndiProps.setProperty("java.naming.provider.url", jnp);
 
       url = ClassLoader.getSystemResource("cosnaming.jndi.properties");
       cosnamingJndiProps = new java.util.Properties();
       cosnamingJndiProps.load(url.openStream());
-      String corbaloc = "corbaloc::"+host+":3528/JBoss/Naming/root";
+      String corbaloc = "corbaloc::"+hostForURL+":3528/JBoss/Naming/root";
       cosnamingJndiProps.setProperty("java.naming.provider.url", corbaloc);
    }
    



More information about the jboss-cvs-commits mailing list