Kbase P11175: How to be sure that a client has received all the mesages on
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  17/02/2004 |
|
Status: Unverified
GOAL:
How to check and see that a client has received all the messages on a topic?
FIX:
If a client is subscribed to a topic, it will consume all messages that are sent to that topic. If a subscribing client does not exist to consume messages on that topic, then any messages that are sent to that topic are lost, unless durable subscriptions have been set up, allowing a disconnected client to reconnect and consume all the messages on a topic that it had a durable interest in. There is a waitforMessages procedure, that will allow you to set the amount of time a subscribing client will wait for messages. So, if 100 messages have been sent to a topic, the subscribing client will consume all 100 messages and then wait for the amount of time specified in waitforMessages for more to arrive. If no more messages have been sent to the topic in the amount of time specified, the subscribing client ends.