Announcement Announcement Module
Collapse
No announcement yet.
How to handle exceptions in MessageConverter Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to handle exceptions in MessageConverter

    Hello,

    I think i don't understand some basics so I'll be glad if someone would guide me to a good doc. If my message listner or message converter throws the exception who manages what to do with the message that provoked the exception and what is the options?

    Right now I am using SimpleMessageListenerContainer with MessageListenerAdapter that listense for the queue with default settings. My custom MessageConverter can throw exception for bad messages. When exception is thrown it seems like container stop receiving the messages.
    Code:
    sbin/rabbitmqctl list_queues messages_ready messages_unacknowledged
    show's several ready messages and 1 unacknowledged. Where should I force this bad message disposal or something else?
Working...
X