Skip to content

Handling Exceptions that may occur after receiving message and before processMessage() getting called. #370

@harshitshah4

Description

@harshitshah4

Hey,

First of all thanks for this awesome library.

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.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions