Details
-
Type:
New Feature
-
Status: Closed
-
Priority:
Minor
-
Resolution: Complete
-
Affects Version/s: 1.4.5
-
Fix Version/s: 1.5 RC1
-
Component/s: None
-
Labels:
-
Pull Request URL:
Description
Currently, SpEL is supported in @RabbitListener which makes it quite easy to create properties or @Bean queues to specify where the listener should be attached.
Since @SendTo doesn't support SpEL, we have to hard code the queue name or add org.springframework.amqp.core.Message to the method arguments and set the replyTo address there.
Allowing SpEL in the @SentTo annotation would significantly help with maintenance and allow for some creative usages especially if the SpEL is evaluated on send.