[hornetq-commits] JBoss hornetq SVN: r11814 - branches/Branch_2_2_EAP/src/main/org/hornetq/core/client/impl.

do-not-reply at jboss.org do-not-reply at jboss.org
Fri Dec 2 10:45:16 EST 2011


Author: ataylor
Date: 2011-12-02 10:45:15 -0500 (Fri, 02 Dec 2011)
New Revision: 11814

Modified:
   branches/Branch_2_2_EAP/src/main/org/hornetq/core/client/impl/Topology.java
Log:
always add backup in topology

Modified: branches/Branch_2_2_EAP/src/main/org/hornetq/core/client/impl/Topology.java
===================================================================
--- branches/Branch_2_2_EAP/src/main/org/hornetq/core/client/impl/Topology.java	2011-12-02 14:58:14 UTC (rev 11813)
+++ branches/Branch_2_2_EAP/src/main/org/hornetq/core/client/impl/Topology.java	2011-12-02 15:45:15 UTC (rev 11814)
@@ -225,6 +225,11 @@
             }
             else
             {
+               /*always add the backup, better to try to reconnect to something thats not there then to not know about it at all*/
+               if(currentMember.getB() == null && memberInput.getB() != null)
+               {
+                  currentMember.setB(memberInput.getB());
+               }
                return false;
             }
          }



More information about the hornetq-commits mailing list