Selecting messages from queues

We can select messages from queues using the MsgId and CorrelId fields on an MQGET call, or by using a SelectionString on an MQOPEN or MQSUB call.

  • Selectors
    A message selector is a variable-length string used by an application to register its interest in only those messages that have properties that satisfy the Structured Query Language (SQL) query that the selection string represents.
  • Selection behavior
    Overview of IBM MQ selection behavior.
  • Message selector syntax
    An IBM MQ message selector is a string with syntax that is based on a subset of the SQL92 conditional expression syntax.
  • Selecting on the content of a message
    It is possible to subscribe based on a selection of message payload content (also known as content filtering), but the decision about which messages should be delivered to such a subscription cannot be performed directly by IBM MQ; instead an extended message selection provider, for example IBM Integration Bus, is required to process the messages.

Parent topic: IBM MQ messages