[jboss-cvs] JBossAS SVN: r108850 - 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
Sat Oct 23 12:11:05 EDT 2010


Author: rachmatowicz at jboss.com
Date: 2010-10-23 12:11:04 -0400 (Sat, 23 Oct 2010)
New Revision: 108850

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-10-23 16:06:22 UTC (rev 108849)
+++ branches/JBoss-AS-6.0.x_ipv6/testsuite/src/main/org/jboss/test/hellojrmpiiop/test/HelloTimingStressTestCase.java	2010-10-23 16:11:04 UTC (rev 108850)
@@ -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