Skip to content

Dynamic connection factory based on incoming request #2465

Closed Answered by artembilan
david-malecek asked this question in Q&A
Discussion options

You must be logged in to vote

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 a sendConnectionFactorySelectorExpression where org.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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@david-malecek
Comment options

Answer selected by david-malecek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants