RabbitTemplate - sendConnectionFactorySelectorExpression SpEL used for receive methods as well #1414
Unanswered
RedeemerSK
asked this question in
Q&A
Replies: 1 comment
-
|
Thanks; yes, it's a bug. #1415 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
While looking at implementation of RabbitTemplate at
spring-amqp/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitTemplate.java
Line 1075 in d3b93e9
sendConnectionFactorySelectorExpressionis always used insideobtainTargetConnectionFactory()regardless of what Expression is passed as parameter. Therefore, when called fromdoReceive*()methods, even thoughreceiveConnectionFactorySelectorExpressionis passed toobtainTargetConnectionFactory(), connection factory selection will be done based on evaluation ofsendConnectionFactorySelectorExpressioninstead.Seems like a bug. Or may it be intentional ?
(not creating bug ticket right away as I'm not yet an user of this module impacted by this implementation detail)
Beta Was this translation helpful? Give feedback.
All reactions