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
RoutingConnectionFactoryis the way to go.The
RestTemplatecan be configured with asendConnectionFactorySelectorExpressionwhereorg.springframework.amqp.core.Messageis used a root evaluation object.See more in docs: https://docs.spring.io/spring-amqp/reference/html/#routing-connection-factory