RabbitTemplate - sendConnectionFactorySelectorExpression SpEL used for receive methods as well #1414
Answered
by
garyrussell
RedeemerSK
asked this question in
Q&A
-
|
While looking at implementation of RabbitTemplate at sendConnectionFactorySelectorExpression is always used inside obtainTargetConnectionFactory() regardless of what Expression is passed as parameter. Therefore, when called from doReceive*() methods, even though receiveConnectionFactorySelectorExpression is passed to obtainTargetConnectionFactory(), connection factory selection will be done based on evaluation of sendConnectionFactorySelectorExpression instead.
Seems like a bug. Or may it be intentional ? |
Beta Was this translation helpful? Give feedback.
Answered by
garyrussell
Jan 3, 2022
Replies: 1 comment
-
|
Thanks; yes, it's a bug. #1415 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
RedeemerSK
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks; yes, it's a bug. #1415