[jboss-cvs] JBossAS SVN: r69847 - branches/EJB3_RC9_Patch_1_CP/ejb3/src/main/org/jboss/ejb3.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Feb 14 18:44:04 EST 2008


Author: bdecoste
Date: 2008-02-14 18:44:04 -0500 (Thu, 14 Feb 2008)
New Revision: 69847

Modified:
   branches/EJB3_RC9_Patch_1_CP/ejb3/src/main/org/jboss/ejb3/ProxyFactoryHelper.java
Log:
[EJBTHREE-1191] defer 0.0.0.0 clindBindUrl to connector config

Modified: branches/EJB3_RC9_Patch_1_CP/ejb3/src/main/org/jboss/ejb3/ProxyFactoryHelper.java
===================================================================
--- branches/EJB3_RC9_Patch_1_CP/ejb3/src/main/org/jboss/ejb3/ProxyFactoryHelper.java	2008-02-14 23:42:53 UTC (rev 69846)
+++ branches/EJB3_RC9_Patch_1_CP/ejb3/src/main/org/jboss/ejb3/ProxyFactoryHelper.java	2008-02-14 23:44:04 UTC (rev 69847)
@@ -422,8 +422,9 @@
    public static String getClientBindUrl(RemoteBinding binding) throws Exception
    {
       String clientBindUrl = binding.clientBindUrl();
-      if (clientBindUrl.trim().length() == 0)
+      if (clientBindUrl.trim().length() == 0 || clientBindUrl.indexOf("0.0.0.0") != -1)
       {
+    	   
          ObjectName connectionON = new ObjectName("jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3");
          KernelAbstraction kernelAbstraction = KernelAbstractionFactory.getInstance();
          try
@@ -435,7 +436,7 @@
             clientBindUrl = RemoteProxyFactory.DEFAULT_CLIENT_BINDING;
          }
       }
-      
+       
       return clientBindUrl;
    }
 }




More information about the jboss-cvs-commits mailing list