How to detect availability of inactive broker?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to detect availability of inactive broker?

test4john
Say two brokers, one is active as the master (e.g. holding the exclusive lock to back end DB), the other is trying to get the lock to be the master.

If the second one for some reason is down, then after some time when the master is down, there is no one to resume the work!

So question is: how to detect the availability of the inactive broker? as it is inactive, it is not able to process messages, right?? so it is not feasible to try to send it msg to test its liveness ..

please share your thoughts.
Reply | Threaded
Open this post in threaded view
|

Re: How to detect availability of inactive broker?

Vjaceslavs Klimovs
You could perhaps use JMX to monitor inactive broker?

http://activemq.apache.org/jmx.html

On Thu, 22 Jul 2010 08:38:52 -0700 (PDT)
test4john <[hidden email]> wrote:

>
> Say two brokers, one is active as the master (e.g. holding the
> exclusive lock to back end DB), the other is trying to get the lock
> to be the master.
>
> If the second one for some reason is down, then after some time when
> the master is down, there is no one to resume the work!
>
> So question is: how to detect the availability of the inactive
> broker? as it is inactive, it is not able to process messages,
> right?? so it is not feasible to try to send it msg to test its
> liveness ..
>
> please share your thoughts.
>