Kbase P165760: The acknowledgeAndForward ABL-JMS API procedure ignores any modifications to a message
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  11/05/2010 |
|
Status: Unverified
SYMPTOM(s):
The acknowledgeAndForward ABL-JMS API procedure ignores any modifications to a message
If a user modifies a message in the message handler, then any changes will be ignored by the acknowledgeAndForward ABL-JMS API procedure
FACT(s) (Environment):
OpenEdge 10.1x
OpenEdge 10.2x
All Supported Operating Systems
CAUSE:
The acknowledgeAndForward ABL-JMS API procedure requires the exact same Java message object that you originally received in order for it to work. So the SonicMQ adapter saves off the last message object which is returned to the ABL and use that to call the acknowledgeAndForward procedure.
As such, the acknowledgeAndForward ABL-JMS API procedure should not have included a message handle parameter.
FIX:
If you need to modify a message before forwarding it, then use the sendToQueue ABL-JMS API procedure instead. Keep in mind that a new message will be created in this case, so the message will contain a new JMSMessageID.