title: How can I recognize ActiveMQ disconnect using NMS and C#
body: <p>I have a C# publisher and subscriber that talk to each other using ActiveMQ and NMS. Everything works fine, except I have no way to know when ActiveMQ goes down. This is particularly bad for the consumer. They stop getting data, but aside from the fact that data stops showing up, no errors or events are raised.</p>
  
  <p>Is there a way using NMS(particulary Apache.NMS.IConnection or the Apache.NMS.ISession objects)</p>
  
  <p>I downloaded the implementation that I'm using from Spring, but I'm not using any specific spring implementations, everything I'm using is in the Apache.NMS and Apache.NMS.ActiveMQ namespaces.</p>