Message Selection
JMS provides an SQL-like language to define "selectors". These selectors operate on the headers and properties (user-defined properties, JMS-defined properties and even provider-specific properties) of the message to select only messages that return TRUE for the given expression.
For example:
JMSMessageID='sj2j22j' AND MyType='payroll'