You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Noel OConnor <no...@gmail.com> on 2014/04/29 06:17:42 UTC

qpid jms client 1.0 and failover

Hi,
I'm implementing a solution where clients are talking to a cluster of
activemq servers via AMQP.
If the master broker in the cluster fails I want the clients to failover to
the cluster node which is elected master.

I think the latest activemq uses qpid 0.26 as it AMQP layer.
In pre AMQP 1.0 versions it was possible to specify a list of brokers in
the connection URL and if a broker stopped the client would failover to the
next broker in the list.

>From reading this mailing list it seems that the new AMQP 1.0 JMS client
doesn't support multiple brokers in the connection URL.

To get around this what I was considering was using a software load
balancer which would probe the list of activemq nodes and find the master
node then bind this to a IP address that the clients are configured to
connect to.

I theory this should all work but I was wondering if they're any gotchas
with the client being disconnected and reconnected from different servers.
My assumption is that the reconnect logic would redelivery any non-acked
messages.

Comments, suggestions ?

cheers
Noel