[Jboss-cvs] JBossAS SVN: r56821 - branches/Branch_4_0/system/src/main/org/jboss

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Sep 13 18:23:29 EDT 2006


Author: bstansberry at jboss.com
Date: 2006-09-13 18:23:29 -0400 (Wed, 13 Sep 2006)
New Revision: 56821

Modified:
   branches/Branch_4_0/system/src/main/org/jboss/Main.java
Log:
Ensure JG < 2.4 respects jgroups.bind_addr

Modified: branches/Branch_4_0/system/src/main/org/jboss/Main.java
===================================================================
--- branches/Branch_4_0/system/src/main/org/jboss/Main.java	2006-09-13 22:09:32 UTC (rev 56820)
+++ branches/Branch_4_0/system/src/main/org/jboss/Main.java	2006-09-13 22:23:29 UTC (rev 56821)
@@ -325,10 +325,16 @@
                System.setProperty(name, value);
                // Ensure setting the old bind.address property also sets the new
                // jgroups.bind_addr property, otherwise jgroups may ignore it
+               // In Branch_4_0 do the opposite as well, as JG < 2.4 will
+               // ignore the new property
                if ("bind.address".equals(name))
                {
                   System.setProperty("jgroups.bind_addr", value);
                }
+               else if ("jgroups.bind_addr".equals(name))
+               {
+                  System.setProperty("bind.address", value);
+               }
                break;
             }
 




More information about the jboss-cvs-commits mailing list