Kbase 19272: SonicMQ:How to Detect a Broker Disconnected from the Network
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  19/11/1999 |
|
19272
SUMMARY:
An inactive publisher and subscriber cannot detect that a broker might be disconnected from the network because no TCP_RESET is sent. This solution explains how to solve the problem.
SOLUTION:
In Progress SonicMQ 2000, there is a feature that allows an
application to examine the health of the connection by pinging the broker on a JMS connection:
setPingInterval(interval)
Interval is in seconds, and a zero or negative value
turns off the ping if it is already on.
When you invoke setPingInterval(interval) on a connection, a ping message is sent to the broker on that connection at the specified interval.
NOTE: Setting an interval too small burns up too much bandwidth which may bog down your application.