I want to create a java class , which has the sole purpose of checking the status of an ActiveMQ broker (or connectivity to an ActiveMQ broker as an outage may be defined as the client losing network connectivity as well).
so basically there would be a thread running after every few seconds to check the status of the broker and if there broker is down, I want to do some specific task of mailing the support group and stuff like that.
The examples online are not detailed enough to explain how the above can be achieved.
Has someone already done this, or can suggest a nice way to make this happen??
Thanks,
Neeraj
Send a Testmessage to the broker:
connect, send message, if you recieve message: all is fine. if not….
thats what i do. In addition i do some other stuff: