On 01/18/2011 04:17 PM, Jonathan Robie wrote:
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.
That sounds like something to go in the docs under "how-to filter"
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]