activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j0llyr0g3r <>
Subject Broker autofailover: Why don't brokers check that a host is down by themselves?
Date Fri, 19 Oct 2007 16:35:17 GMT

Hey folks,

i am still struggling with the auto-failover feature of brokers in a broker

Consider that i have two brokers, each of them connected to the other like
this over SSL:

      <networkConnector name="remote_ssl"
uri="static://(ssl://my-bloody-valentine:61617)" />

Works like a charm.

Now consider that i have one Broker - called A - connected to a Cluster of 2
other brokers, called B and C.

So the networkconnector for Broker A looks like:

      <networkConnector name="remote_ssl"
uri="static://(ssl://broker-B:61617, ssl://broker-C:61617)" />

And the networkConnectors of B and C simply point to A like this:

      <networkConnector name="remote_ssl"
uri="static://(ssl://broker-A:61617)" />

So far, so good.

Now i start broker-A and broker-B / broker-C from the cluster.

This works fine, meaning i can stop broker-B, then broker-C becomes the
master, messages are correctly transmitted and so on.

But broker-A always gives me annoying errors like this:

		INFO  DiscoveryNetworkConnector      - Establishing network connection
between from vm://localhost to ssl://broker-C:61627
		WARN  DiscoveryNetworkConnector      - Could not start network bridge
between: vm://localhost and: ssl://broker-C:61627 due to: Connection refused
		INFO  DemandForwardingBridge         - localhost bridge to Unknown stopped
		ERROR TransportConnector             - Could not accept connection :
org.apache.activemq.transport.TransportDisposedIOException: Peer
(vm://localhost#68) disposed.
		org.apache.activemq.transport.TransportDisposedIOException: Peer
(vm://localhost#68) disposed.
		INFO  DiscoveryNetworkConnector      - Establishing network connection

Well, of course can the connection from broker-A to broker-C not be
established, because broker-C works initially as slave and is thus not

BUT: If activemq-brokers do an autofailover, why don't they realize  by
themselves that some hosts in their list are not reachable and stop spamming
my console with the same error message?

How can i get rid of this error message (by configuration, not by

So far as i can tell, the system works flawless despite the error message.


A uri-prefix like "failover" does not work with brokers.
View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message