I have a Configured Spring integration with RabbitMQ as message broker. I have a scenario where the application may be deployed in production with RabbitMQ down.When it happens the application continuosly tries to reconnect
org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer run
WARNING: Consumer raised exception, processing can restart if the connection factory supports it. Exception summary: org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused
My server log get filled with these logs. How can I configure the connection factory, to say, try to reconnect only 5 times in interval of 10,30 or 60 mis ? I want to be able to control the retry and print some custom message.