Kbase 20211: Recovering a SonicMQ Session: Session.recover()
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/3/2000 |
|
SUMMARY:
A buildup of unacknowledged messages can hurt performance and use up valuable resources as you run Progress SonicMQ Version 2000x. This
solution shows how a client can remedy this situation by recovering
the session.
SOLUTION:
If message volume is high, a user might not be able to process and acknowledge messages as quickly as they are delivered. This can cause the afore-mentioned buildup of unacknowledged messages.
A solution is to call the recover() method with Session.recover(), which tells the message broker to perform the following actions:
1) Stop message delivery on the session.
2) Mark all messages that might have been delivered, but the
session has not acknowledged as "redelivered".
3) Restart the message delivery to the session, including all
unacknowledged messages that might have been previously
delivered.
The messages marked as "redelivered" are removed, and become candidates for garbage collection.
Reference To Written Documentation:
SonicMQ API Documentation.