[jboss-cvs] JBossAS SVN: r96868 - 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 11:02:01 EST 2009


Author: rachmatowicz at jboss.com
Date: 2009-11-24 11:02:00 -0500 (Tue, 24 Nov 2009)
New Revision: 96868

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 (JBPAPP-2997)

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:31:28 UTC (rev 96867)
+++ branches/JBPAPP_4_2_0_GA_CP_IPV6/testsuite/src/main/org/jboss/test/cts/ejb/CallerSessionBean.java	2009-11-24 16:02:00 UTC (rev 96868)
@@ -237,7 +237,8 @@
       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, "jnp://" + getServerHostForURL() + ":1099");
+      // JBPAPP-2997
+      env.setProperty(Context.PROVIDER_URL, "jnp://" + System.getProperty("jboss.bind.url.address", "localhost") + ":1099");
 
       InitialContext ctx = new InitialContext(env);
       log.info("looking up: "+ejbName);




More information about the jboss-cvs-commits mailing list