qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Sim <g...@redhat.com>
Subject Re: "not" values in the headers exchange
Date Mon, 05 Sep 2011 07:50:58 GMT
On 09/04/2011 03:04 PM, fadams wrote:
> Hi,
> I'm curious if there is an ability to do "not" selectors via the headers
> exchange.

No, there isn't.

> so for example I might have two headers lets say type and subtype and it
> might be nice to select messages of type=fruit and subttype != peach so I
> can select all fruit except peaches. That's clearly a lot less convoluted
> (and error prone) than having an x-match all containing all the positive
> matches (and also if I add a new fruit I'd have to update the binding, but
> with the not selector I wouldn't).
> If it's not possible with the headers exchange could someone suggest some
> clever trickery to do that type of thing.

You could use the xml exchange; its a non-standard exchange that 
supports x-query based bindings that allow more sophisticated matching 
logic on application defined properties. It doesn't actually require you 
to send xml content.

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

View raw message