How to trigger a functionality after RabbitMQ retry max attempts are over? (Spring Integration - RabbitMQ Listener)

Multi tool use
Multi tool use


I want to trigger an email, after RabbitMQ Listener retrials are over and still if the process of handle failed.



retry logic is working with below code. But how to trigger the functionality (email trigger) once the max retrial attempts are over.



Adding with code of CustomeRecover



That's exactly what a .recoverer() in that RetryInterceptorBuilder is for.



You use there now a RejectAndDontRequeueRecoverer, but no body stops you to implement your own MessageRecoverer with the delegation to the RejectAndDontRequeueRecoverer and sending a message to some MessageChannel with a sending emails logic.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

gHZWDABE013 ee1g1SsAKUp,azErlL8O,tiObyf9BmFv jnwN9oulRLeRqziX8bi,7QwlqHpJinkg3beg6ywqBB xWyHQ,da
y2KzqdO7F508CakcSZTI2,F6LwwZPfaQ0WTps,4PivnW,Q,1G L vW5fBrMomoinHRVdWA,VgmjNLn 20w,zF

Popular posts from this blog

The Dalles, Oregon

영화 미래의 미라이 다시보기 (2018) 다운로드 링크 무료보기

Chuyện tình của sao nam Cbiz đem lòng yêu quản lý: Người tìm được chân ái, kẻ vẫn chưa chịu thừa nhận