Impact of Modifying Message Body Before Acknowledgment with persistent_message_receiver.ack()
hobart
Member Posts: 4 ✭
I have a question regarding the persistent_message_receiver.ack()
method.
According to the documentation,
,when I acknowledge a message, I need to attach the message as a parameter. In our use case, the message body may be modified before acknowledging. I would like to know if this will cause any issues that might result in the acknowledgment failing.If this is the case, is there a solution to still acknowledge the message even if some of its content has been modified?
Thanks
Hobart
Tagged:
0
Comments
-
Hey @hobart - can you provide more details on how the message body might be altered before acknowledging the message? There are no setters to be called on the InboundMessage and you cant modify the payload as per the documentation here:
The only way you would pass a different message with a different payload is to create a new outboud message where you set a different payload, in which case it is a different message and you wont be use it to acknowledge another message. Hopefully this helps
0