activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Calvo <flipy....@gmail.com>
Subject hub-n-spoke with updateClusterClients' failover support over brokers
Date Fri, 03 Feb 2012 11:17:03 GMT
Hi,
Is it possible to update the list of running brokers for another brokers?

Taking the next scenario:
consumer/producer 1 < - > embedded broker 1 < - > broker A < - > broker
B <
- >  embedded broker 1 < - > consumer/producer 2

The main goal is to give a list of running brokers to embedded brokers.

Network connector defined from the embedded brokers to the next broker is:
NetworkConnector nc2 = broker.addNetworkConnector("static:(failover:ssl://"
+ ipBrokerCentral + ":61616)");
(note: does not work taking out the static prefix)

Transport connector for the embedded broker is:
TransportConnector tc = new TransportConnector();
tc.setConnectUri(new URI("ssl://" +
InetAddress.getLocalHost().getHostAddress() + ":" + (61616 + clientID) ));
tc.setUpdateClusterClients(true);
tc.setUpdateClusterFilter("broker*");
broker.addConnector(tc);

And standalone brokers (in the example, broker A and B) is:
<transportConnectors>
            <transportConnector name="openwire"
                                uri="ssl://0.0.0.0:61616" 
                                updateClusterClients="true"
                                rebalanceClusterClients="true"
                                updateClusterClientsOnRemove="true"
                                updateClusterFilter="broker*"/>
</transportConnectors>

Given the configuration below, if we kill either broker A or B, embedded
broker's do not rebalance to the next available server.

Is there something wrong about that configuration/scenario?

Thanks

--
View this message in context: http://activemq.2283324.n4.nabble.com/hub-n-spoke-with-updateClusterClients-failover-support-over-brokers-tp4354314p4354314.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message