[jboss-cvs] JBossAS SVN: r66098 - branches/Branch_4_2/ejb3/src/main/org/jboss/ejb3.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Oct 12 15:44:48 EDT 2007


Author: bdecoste
Date: 2007-10-12 15:44:48 -0400 (Fri, 12 Oct 2007)
New Revision: 66098

Modified:
   branches/Branch_4_2/ejb3/src/main/org/jboss/ejb3/InitialContextFactory.java
Log:
[JBAS-4805] use jboss.bind.address instead of localhost for HA IC

Modified: branches/Branch_4_2/ejb3/src/main/org/jboss/ejb3/InitialContextFactory.java
===================================================================
--- branches/Branch_4_2/ejb3/src/main/org/jboss/ejb3/InitialContextFactory.java	2007-10-12 18:50:13 UTC (rev 66097)
+++ branches/Branch_4_2/ejb3/src/main/org/jboss/ejb3/InitialContextFactory.java	2007-10-12 19:44:48 UTC (rev 66098)
@@ -33,6 +33,8 @@
 import org.jboss.logging.Logger;
 
 import org.jboss.mx.util.MBeanServerLocator;
+import org.jboss.system.server.ServerConfig;
+import org.jboss.util.StringPropertyReplacer;
 
 /**
  * @version <tt>$Revision$</tt>
@@ -111,7 +113,8 @@
          {          
             try
             {
-               env.put(Context.PROVIDER_URL, "localhost:" + getHaJndiPort());
+               String bindAddress = System.getProperty(ServerConfig.SERVER_BIND_ADDRESS);
+               env.put(Context.PROVIDER_URL, bindAddress + ":" + getHaJndiPort());
                InitialContext haCtx = new InitialContext(env);
                haCtx.bind("HA_TEST", null);
                haCtx.unbind("HA_TEST");




More information about the jboss-cvs-commits mailing list