You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by tr...@apache.org on 2010/02/01 17:02:42 UTC

svn commit: r905316 - /qpid/trunk/qpid/python/examples/headers/declare_queues.py

Author: tross
Date: Mon Feb  1 16:02:41 2010
New Revision: 905316

URL: http://svn.apache.org/viewvc?rev=905316&view=rev
Log:
Added missing binding_key values to the headers bindings.  This allows the bindings to be
later deleted.

Modified:
    qpid/trunk/qpid/python/examples/headers/declare_queues.py

Modified: qpid/trunk/qpid/python/examples/headers/declare_queues.py
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/python/examples/headers/declare_queues.py?rev=905316&r1=905315&r2=905316&view=diff
==============================================================================
--- qpid/trunk/qpid/python/examples/headers/declare_queues.py (original)
+++ qpid/trunk/qpid/python/examples/headers/declare_queues.py Mon Feb  1 16:02:41 2010
@@ -67,10 +67,10 @@
 # exchange_bind() determines which messages are routed to a queue. 
 
 session.queue_declare(queue="first")
-session.exchange_bind(exchange="amq.match", queue="first", arguments={'x-match':'any', 'class':'first'})
+session.exchange_bind(exchange="amq.match", queue="first", binding_key="first", arguments={'x-match':'any', 'class':'first'})
 
 session.queue_declare(queue="second")
-session.exchange_bind(exchange="amq.match", queue="second", arguments={'x-match':'any', 'class':'second'})
+session.exchange_bind(exchange="amq.match", queue="second", binding_key="second", arguments={'x-match':'any', 'class':'second'})
 
 #----- Cleanup ---------------------------------------------
 



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