I'd say you're missing the ha flag. To enable failover you need to use
"ha=true" in your URL. Otherwise the client won't know that it's connection
to an HA (i.e. highly available) master/slave pair.


Justin

On Thu, Aug 1, 2019 at 6:35 AM mk666aim <matt.k...@aimia.com> wrote:

> The below URL does not seem to work for me.
> Client basically never switches to the backup node. Isn't that what
> reconnectAttempts=-1 will cause?
>
> I used following URL before and the switching happened:
>
> *(tcp://master:61616,tcp://slave:61616)?reconnectAttempts=5*
>
> What am I missing?
>
> And what is the *ha* flag about?
>
>
> jbertram wrote
> > Thanks for following up, Frank. I would expect a URL like this to work:
> >
> >   (tcp://master:61616,tcp://slave:61616)?ha=true&reconnectAttempts=-1
>
>
>
>
>
> --
> Sent from:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
>

Reply via email to