Does someone have a code snippet they code share showing how to implement a heart beat using the stomp library? Preferably in C#, but others will be helpful.
I don't have a problem with the connection to network rail as the it is kept alive by TD etc messages on the same connection, but internally I redistribute the feeds using separate queues access on separate connections by separate programs. The VSTP connection drops if there is a long(ish) gap between messages. There are several references on the net to heart beats in activemq, but blow me if I can find an example that hints at how to implement it!
(Also, if you've read this far...
For stomp I have two DLLs: Apache.NMS.dll and Apache.NMS.Stomp.dll.
I've seen references on here before to openwire perhaps being more stable (not that I have a problem with stomp), and I think setting activity limits with the openwire library is easier, but, I'm struggling to find the dll's for openwire. The apache NMS download only has one dll (Apache.NMS.dll), and the connectionfactory call fails as it's unable to find the protocol support. Pointers gratefully received and will save me an evening of searching. coding, trying, failing.)
Now I must go and do some real work!