users@jms-spec.java.net

[jms-spec users] [jsr343-experts] (JMS_SPEC-61) Selector on JMS body

From: Nigel Deakin <nigel.deakin_at_oracle.com>
Date: Wed, 04 Apr 2012 15:20:50 +0100

Back on November, user koen.serneels proposed this JIRA issue:

http://java.net/jira/browse/JMS_SPEC-61

"It would be a very nice feature to apply selectors on the message body.
Possibly using regexp, or XPath in case of TextMessages.
The same for key/value pairs of MapMessage."

I propose to reject this as it would be contrary to the way in which JMS is designed. Currently message selectors can be
used to filter messages on the basis of application-defined message properties. JMS supports message properties
expressly to avoid the need for the message selector mechanism to examine the message body, which might be inefficient.

If anyone would like to take issue with this, please do!

Nigel