The client is automatically notified about the slave when it connects to
the master.  If you've configured your URL with ha=true and
reconnectAttempts > 0 then your client should automatically failover when
the master fails.

It's also worth noting that shutting the broker down gracefully will not
trigger client fail-over by default. You'd need to configure
<failover-on-shutdown>true</failover-on-shutdown> if you're shutting the
broker down gracefully or you can simply kill the broker (e.g. using kill
-9 <pid>).


Justin

On Thu, Jan 17, 2019 at 3:57 AM PedroRP <pedro.rami...@techonrails.com>
wrote:

> Hi Mike!
>
> Thanks for your answer. I have analized this example:
>
> https://github.com/apache/activemq-artemis/tree/master/examples/features/ha/client-side-failoverlistener
> and I have added the fail over event listener to my code. But I don't
> understand a part of this example. In the resources only an url address in
> pointed, maybe the master url. But how can the software discover the slave
> one?
>
> Thanks in advance!
>
>
>
> --
> Sent from:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
>

Reply via email to