Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.1.2
-
Fix Version/s: 2.2
-
Component/s: Transport: JMS
-
Labels:None
-
User impact:Low
-
Affects Docs:Yes
-
Migration Impact:
-
Similar Issues:None
Description
It would be really cool if the JmsMessageRequester could pass the selector string to the ExpressionEvaluatorManager for expression parsing.
This would open the door for dynamic message requesting through on-the-fly evaluated expressions. This would make less sense at JmsMessageReceiver level, where such a dynamic behavior is probably useless.
On the downside, it could create backwards compatibility issues if someone is using #[xxx] in an existing JMS selector used by a requester.
Hi David. The only problem with doing it is that expression manager will not have a message instance, and there's no way it could, as selector is set on the consumer at creation time, before it has a chance to consume anything and return a message.
This, however, may simply mean that you'll not be able to use evaluators relying on a message, but any other evaluator would still work. Is it in line with your expectations?