spring amqp exchange not found

Solutions on MaxInterview for spring amqp exchange not found by the best coders in the world

showing results for - "spring amqp exchange not found"
Huw
21 Jun 2020
1Unlike JMS, publishing to RabbitMQ is asynchronous (which is why it's generally faster), so the failure for a missing exchange is reported on a different thread; you can add a listener to get the notification instead of it just being logged.
2
3You can enable transactions template.setChannelTransacted(true); and then the failure will be reported on the publishing thread because it will be blocked waiting for the reply from the txCommit() when the IO error occurs.
4
5However, transactions are quite expensive so can hurt performance.
6
7For other errors (e.g. exchange exists, but no route to a queue), you can use publisher confirms and returns but, again, waiting for a confirmation for each individual message published will slow down performance.
similar questions
queries leading to this page
spring amqp exchange not found