After checking the answer provided here (https://stackoverflow.com/a/34514526/6613150), I'm able to intercept the message before it's processed. However, I now need to get it after the method who is annotated with @RabbitListener ends.
Any idea?
After checking the answer provided here (https://stackoverflow.com/a/34514526/6613150), I'm able to intercept the message before it's processed. However, I now need to get it after the method who is annotated with @RabbitListener ends.
Any idea?
Add a
MethodInterceptoradvice to the container's advice chain instead. That way you have access to theMessagebefore and after the listener call (and notification of any exception thrown).