As a amqp-client, spring-amqp really done a pretty nice job in my mq-based email app. Thanks all of spring-amqp-team.
I use Dead Letter Exchange(DLX) and spring-retry for the bussness exceptions handling when consuming a message.
When certain exception is throwed, i will retry it. if max-retry-count is exhausted & the message is still not be processing appropriately, i will not requeue it (to the original queue) any more & put it to the dead-letter-exchange.
There are variety of reasons that lead to fails of message consuming, and I classify them based on custom exceptions. Before put failed message to the DLX, i want add some error-description to this message, So another consumer that listening to the DLX can retrieve & analysis & process it according to the error-description. How can i modifying the failed message, add some extra error-desc to it?
Here is another thread that i posted on the rabbitmq-discuss:
sound like if i want modify the original message, i must use republish instead of reject & DLX, is that true?
Thanks for the reply! greatly appreciated!