Question: how jms message selector works?
Answer: Property values are set before sending a message. ... A JMS message selector allows a client to specify the messages that it is interested in by using the message header. Only messages with headers that match the selector are delivered. Message selectors cannot refer to message body values.