mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@734766 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2d0fa5e415
commit
e547cbdf4f
|
@ -204,17 +204,17 @@ public class FanoutTransport implements CompositeTransport {
|
||||||
LOG.debug("Stopped: " + this);
|
LOG.debug("Stopped: " + this);
|
||||||
LOG.debug("Attempting connect to: " + uri);
|
LOG.debug("Attempting connect to: " + uri);
|
||||||
Transport t = TransportFactory.compositeConnect(uri);
|
Transport t = TransportFactory.compositeConnect(uri);
|
||||||
LOG.debug("Connection established");
|
|
||||||
fanoutHandler.transport = t;
|
fanoutHandler.transport = t;
|
||||||
fanoutHandler.reconnectDelay = 10;
|
|
||||||
fanoutHandler.connectFailures = 0;
|
|
||||||
if (primary == null) {
|
|
||||||
primary = fanoutHandler;
|
|
||||||
}
|
|
||||||
t.setTransportListener(fanoutHandler);
|
t.setTransportListener(fanoutHandler);
|
||||||
if (started) {
|
if (started) {
|
||||||
restoreTransport(fanoutHandler);
|
restoreTransport(fanoutHandler);
|
||||||
}
|
}
|
||||||
|
LOG.debug("Connection established");
|
||||||
|
fanoutHandler.reconnectDelay = initialReconnectDelay;
|
||||||
|
fanoutHandler.connectFailures = 0;
|
||||||
|
if (primary == null) {
|
||||||
|
primary = fanoutHandler;
|
||||||
|
}
|
||||||
connectedCount++;
|
connectedCount++;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LOG.debug("Connect fail to: " + uri + ", reason: " + e);
|
LOG.debug("Connect fail to: " + uri + ", reason: " + e);
|
||||||
|
|
Loading…
Reference in New Issue