Announcement Announcement Module
Collapse
No announcement yet.
setting basic.reject with requeue=true using amqp inbound channel adapter Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • setting basic.reject with requeue=true using amqp inbound channel adapter

    Usecase: When something goes wrong while processing a message like Database/External service down then i need to requeue the message at front(for reprocessing immediately after service is recovered)?

    Issue: I am using spring amqp inbound channel adapter. How should we send basic.reject with requeue = true using amqp inbound channel adapter?

    Solution i am thinking of: Should i need to override the methods of adapter?

    Can you help me out.

    Thanks,
    mtr

  • #2
    That is the default behavior as long as you use the default 'acknowledge-mode="AUTO"', as long as you don't set 'requeue-rejected' to false on the underlying listener container (it defaults to 'true') and as long as the downstream flow doesn't throw an 'AmqpRejectAndDontRequeueException'.

    Just throw any other exception (with these default settings) and you will get what you want.

    Comment

    Working...
    X