Dynamic connection factory based on incoming request #2465
-
Hi community 👋 I would like to kindly ask you to help me to find my way around. I need to implement a routing service which will send a rabbit-mq message using a particular Thank you and have a nice day! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Well, since we don't know details about your task, it sounds really like a |
Beta Was this translation helpful? Give feedback.
Well, since we don't know details about your task, it sounds really like a
RoutingConnectionFactory
is the way to go.The
RestTemplate
can be configured with asendConnectionFactorySelectorExpression
whereorg.springframework.amqp.core.Message
is used a root evaluation object.See more in docs: https://docs.spring.io/spring-amqp/reference/html/#routing-connection-factory