Before you mark this a duplicate, I have tried looking on all the relevant post here; but unable to find relevant post.
My problem statement is:
To filter a MapMessage based on certain key/value pair in its body content.
The EE tutorial suggest that
The message consumer then receives only messages whose headers and properties match the selector. A message selector cannot select messages on the basis of the content of the message body.
However, since the JMS implementations are vendor specific, I would like to know if it is possible to filter MapMessage based on key/value in Apache activemq implementation.
(As an example, active MQ supports XPath based selectors when working with messages containing XML bodies. Check here)
or
Is it possible to override the selector (by inheritance, or implementing a new selector) and plug the same with activemq to achieve the result?
Thanks.