[hornetq-commits] JBoss hornetq SVN: r11153 - branches/Branch_2_2_EAP/src/main/org/hornetq/core/server/cluster/impl.
do-not-reply at jboss.org
do-not-reply at jboss.org
Mon Aug 8 22:27:09 EDT 2011
Author: clebert.suconic at jboss.com
Date: 2011-08-08 22:27:09 -0400 (Mon, 08 Aug 2011)
New Revision: 11153
Modified:
branches/Branch_2_2_EAP/src/main/org/hornetq/core/server/cluster/impl/BridgeImpl.java
Log:
fix on reconnecting the bridge and tests
Modified: branches/Branch_2_2_EAP/src/main/org/hornetq/core/server/cluster/impl/BridgeImpl.java
===================================================================
--- branches/Branch_2_2_EAP/src/main/org/hornetq/core/server/cluster/impl/BridgeImpl.java 2011-08-08 22:46:16 UTC (rev 11152)
+++ branches/Branch_2_2_EAP/src/main/org/hornetq/core/server/cluster/impl/BridgeImpl.java 2011-08-09 02:27:09 UTC (rev 11153)
@@ -725,6 +725,12 @@
protected void scheduleRetryConnect()
{
+ if (serverLocator.isClosed())
+ {
+ log.warn("ServerLocator was shutdown, can't retry on opening connection for bridge");
+ return;
+ }
+
if (reconnectAttemptsInUse >= 0 && retryCount > reconnectAttempts)
{
log.warn("Bridge " + this.name +
More information about the hornetq-commits
mailing list