qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Sim <g...@redhat.com>
Subject Re: Proton Python API / Subject Filtering with Queues the AMQP 0.10 way
Date Tue, 23 May 2017 19:42:58 GMT
On 23/05/17 16:50, kristianraue wrote:
> This might be similar to
> http://qpid.2158936.n2.nabble.com/Subject-Filtering-with-Queues-td7608978.html
> <http://qpid.2158936.n2.nabble.com/Subject-Filtering-with-Queues-td7608978.html>
> .
> I would like to use "create_receiver" of the Proton Python API (0.17.0) to
> subscribe to a topic queue on a Qpdi C++ broker (1.36.0) .
> There I want to do something similar to AMQP 0.10 in the form of
> [Queuename]/[subjectfilter] ("for example:  "news-service/*.news") where
> "news-service" would be a queue and "*.news" would be a topic/routing
> filter.  I would like to subscribe to all messages in news-service with a
> subject that match the routing filter *.news.

That is not actually how AMQP 0-10 works; the different kinds of subject 
filtering were defined on exchanges, not on queues. However...

> Is there meanwhile (the above post is from 2014) an (easy) way to do this? I
> would be very grateful for a syntax sample.

Attached are two examples: select_subject.py uses a selector, 
filter_subject.py uses an AMQP 0-10 style 'binding key'. Both examples 
use mynode which can be either a queue or a topic-exchange, depending on 
the actual behaviour you want.

View raw message