I have a system that is currently using SimpleMessageConverter
to send messages to multiple systems.
Now I want to start using Jackson2JsonMessageConverter
for one of the systems.
This is to explain why I want to create more than one instance of a RabbitTemplate
.
I also want to be able to keep using all configuration options provided by RabbitAutoConfiguration
, so for example, if I specify a property spring.rabbitmq.connectionTimeout
I want it to affect all instances of RabbitTemplate
that will be created.
Would it be possible to extend RabbitAutoConfiguration
to do this?