I am using spring-boot
and spring-rabbitmq
package. I have some config class and class representing client. This client class has one listener annotated with @RabbitListener
. Everything is fine with my config and client - it does work.
However, I need to know some details about internals of this client class. Is something special set in a context ? I would like to be able to inject one of three available datasources (three beans). I mean that I would like to be able based on the first symbol of message (thanks to custom converter I can assume that this symbol happens) that actual datasource bean will be injected/used.
Any ideas? Maybe spring-rabbitmq
modifies in some way context ?