Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Support destination variable placeholders in @SendTo and @SendToUser for STOMP endpoints [SPR-12170] #16784
Default destination to send return values of message handler methods can be overridden using either
Affects: 4.1 GA
1 votes, 10 watchers
Stéphane Nicoll commented
There are actually similar use cases in JMS/AMQP where the handling of the reply is currently hardcoded and would benefit from such extension as well. I had a look to the PR and this looks promising but I'd argue we need more thinking on how to design that with respect to the other implementations.
Rossen Stoyanchev commented
Actually the placeholders mentioned in the original description at the top are "destination" placeholders, i.e. specific to the current message. Support for Environment placeholders as was added on the JMS side with commit f98a6c has valid use cases too, like making part of the destination configurable through a property, but it's not what's requested here.
I think we can add support for "destination" variable placeholders as part of this ticket. Seems like a nice feature.
Beyond that, in terms of a dedicated return value type alternative, analogous to