You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to handle or catch any exceptions that may occur in the library after the message is received from the queue and is not yet sent to the processMessage() method.
Scenario:
In Spring Boot, we can use @Payload for de-serializing the message into Custom POJO class. Now assume that some exception occurs while de-serializing the message, in this case message will never be received to processMessage() and will keep on retrying and will never get deleted from the Queue.
This was just an example to explain the issue.
I am assuming that there are many such errors/exceptions that may occur after the message is successfully received by the library but is not yet sent to the processMessage(), is there a way to handle such exceptions and provide a custom logic of what needs to be done with such messages.