-
Notifications
You must be signed in to change notification settings - Fork 632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MultiRabbit containerFactory SpEL Resolution Bug #2809
Comments
Confirmed.
So, if that is resolved to the However that must not be hard to do that as well, although this is going to be more involved fix. There is a workaround for the problem. Use explicit Sounds like a plan? |
Hi, |
In what version(s) of Spring AMQP are you seeing this issue?
3.1.6
Describe the bug
The
resolveMultiRabbitAdminName
method inMultiRabbitListenerAnnotationBeanPostProcessor
does not properly resolve SpEL expressions for the containerFactory attribute of@RabbitListener
annotations. According to the JavaDoc, the containerFactory attribute should support SpEL expressions, but the current implementation does not resolve these expressions, potentially leading to incorrect admin name resolution.Additional context
JavaDoc for containerFactory() method in RabbitListener:
spring-amqp/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/annotation/RabbitListener.java
Line 124 in d7058bb
To Reproduce
Expected behavior
The method should resolve SpEL expressions for both admin and containerFactory attributes. A proposed fix would be:
The text was updated successfully, but these errors were encountered: