Kbase P58194: 4GL-JMS: How to programmatically handle the acknowledgement of messages?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  17/03/2009 |
|
Status: Verified
GOAL:
How to programmatically handle the acknowledgement of messages?
GOAL:
How to prevent the acknowledgement of a message and return it to its destination on the SonicMQ broker?
FACT(s) (Environment):
Progress 9.x
OpenEdge 10.x
SonicMQ
All Supported Operating Systems
FIX:
In the 4GL environment, messages are automatically acknowledged. To prevent the auto acknowledgement of a message, the following must be done. 1. Call setSingleMessageAcknowledgement() in the session object, before calling beginSession(). 2. With in the Message consumer, call setNoAcknowledge() in the consumer object when you want to not Acknowldge a message 3. Use the recover method to send the messages that have not been acknowledged, back to the SonicMQ Brokers destination