qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Robie <jonathan.ro...@redhat.com>
Subject Re: Maps and filtering
Date Tue, 18 Jan 2011 21:17:59 GMT
On 01/17/2011 10:37 AM, Alan Conway wrote:
> On 01/13/2011 04:54 PM, Jonathan Robie wrote:
>> Content-based filtering is currently available only for XML messages,
>> using the XML Exchange.
>>
>> There's no reason the same functionality couldn't be extended to maps,
>> but nobody has implemented that.
>
> There is also the amq.headers exchange which will let you do simple
> filtering on the application headers set on a message.

So with the current broker, the options are:

1. Serialize to XML instead of maps, and query using the XML exchange.
2. Extract the values you want to query, put them in headers, and query 
using the headers exchange.
3. Extract the values you want to query, put them in headers, and query 
using the XML Exchange. The message doesn't have to be in XML to do 
this, if the query uses only the headers, it does not attempt to parse 
the message as XML.

Jonathan

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Mime
View raw message