Message selectors

To filter the messages you receive and to subscribe to specific message topics, add message selectors. You can add as many selectors as you want to each message queue.

StepsAdding a message selector

  1. If you are adding a selector to an active queue, select Active Queues; if you are adding a selector to an inactive queue, select Configured Queues.

  2. Select a message queue from the list, and select File | Properties.

  3. In the Queue Properties dialog box, choose the Selectors tab.

  4. Click Add.

  5. In the New Selector dialog box, enter the selector. For example, to receive all published messages with the topic “StockPrice.SY”, add this selector to the message queue:

    StockPrice.SY
    

    A selector is an expression that contains an equality condition for a topic and possibly other conditions. Selectors must conform to the JMS selector specification, which is a subset of the SQL-92 syntax. See Chapter 31, “Using the Message Service,” in the EAServer Programmer’s Guide for more information.

  6. Click OK.

StepsDeleting a message selector

  1. If you are deleting a selector from an active queue, select Active Queues; if you are deleting a selector from an inactive queue, select Configured Queues.

  2. Select a message queue from the list, and select File | Properties.

  3. In the Properties dialog box, click on the Selectors tab.

  4. Choose a selector from the list and click Delete.