WebSphere Message Brokers
File: aq19890_
Writer: Terry Cowling

Reference topic

This build: July 31, 2007 21:35:51

Content-based filtering

WebSphere Message Broker supports content-based filtering of publications. Content-based filtering allows an MQRFH2 subscriber to restrict the messages that it wants to receive.

When an MQRFH2 client registers a subscription with the local broker, the client can specify a filter to be applied to the content of fields within each publication message.

When an MQRFH2 subscriber subscribes to MQRFH publications within the WebSphere MQ Publish/Subscribe part of a mixed broker network, all MQRFH publications are converted to MQRFH2 format by the broker before they are delivered to the MQRFH2 client.

An MQRFH2 subscriber can also request that some content-based filtering is performed on the MQRFH publications that it subscribes to. Content-based filtering can be done only if the body of the publication is in a format that can be parsed by the broker; that is, if the publication message can be interpreted by one of the broker's default parsers. For example, messages in XML or MQPCF format can be processed in this way.

You cannot use the XMLNS parser, or the MRM XML parser with namespace, for content-based filtering, but you can use the XML parser, and reference an element that is in the format namespace:field because the XML parser treats this reference as one element called namespace:field.

To make full use of content-based filtering, convert publications into MQRFH2 format. Then all messages that are defined in the message repository can be interpreted by the brokers' parsers.

MQRFH clients cannot specify a content filter.

Related concepts
Filters
Related tasks
Subscribing
Related reference
MQRFH2 header
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2007Copyright IBM Corporation 1999, 2007. All Rights Reserved.
This build: July 31, 2007 21:35:51

aq19890_ This topic's URL is: