title: Check the status of an ActiveMQ broker
body: <p>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).</p>
  
  <p>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.</p>
  
  <p>The examples online are not detailed enough to explain how the above can be achieved.</p>
  
  <p>Has someone already done this, or can suggest a nice way to make this happen??</p>
  
  <p>Thanks,
  Neeraj</p>