I have specific requirements: needed application that can change connection settings and listened queues in runtime.
I want to use Spring AMQP abstractions: CachingConnectionFactory, DirectMessageListenerContainer, RabbitTemplate, AsyncRabbitTemplate that application will update in runtime.
CachingConnectionFactory - update address, username and password. DirectMessageListenerContainer - update QueueNames. Last ones - will not updated, but affected by ConnectionFactory.
Is it correct way? Or I should use base implementation with consumers?
cachingConnectionFactory.resetConnection()