[jboss-cvs] JBossAS SVN: r96867 - branches/JBPAPP_4_2_0_GA_CP_IPV6/testsuite/src/main/org/jboss/test/cts/ejb.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Nov 24 10:31:28 EST 2009


Author: rachmatowicz at jboss.com
Date: 2009-11-24 10:31:28 -0500 (Tue, 24 Nov 2009)
New Revision: 96867

Modified:
   branches/JBPAPP_4_2_0_GA_CP_IPV6/testsuite/src/main/org/jboss/test/cts/ejb/CallerSessionBean.java
Log:
Fix up jnp URL formation in org.jboss.test.cts.test.IndependentJarsUnitTestCase

Modified: branches/JBPAPP_4_2_0_GA_CP_IPV6/testsuite/src/main/org/jboss/test/cts/ejb/CallerSessionBean.java
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP_IPV6/testsuite/src/main/org/jboss/test/cts/ejb/CallerSessionBean.java	2009-11-24 15:17:20 UTC (rev 96866)
+++ branches/JBPAPP_4_2_0_GA_CP_IPV6/testsuite/src/main/org/jboss/test/cts/ejb/CallerSessionBean.java	2009-11-24 15:31:28 UTC (rev 96867)
@@ -237,7 +237,7 @@
       Properties env = new Properties();
       env.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
       env.setProperty(Context.OBJECT_FACTORIES, "org.jboss.naming:org.jnp.interfaces");
-      env.setProperty(Context.PROVIDER_URL, System.getProperty("jboss.bind.address", "localhost") + ":1099");
+      env.setProperty(Context.PROVIDER_URL, "jnp://" + getServerHostForURL() + ":1099");
 
       InitialContext ctx = new InitialContext(env);
       log.info("looking up: "+ejbName);




More information about the jboss-cvs-commits mailing list