diff options
| author | Arnaud Simon <arnaudsimon@apache.org> | 2008-01-18 10:36:50 +0000 |
|---|---|---|
| committer | Arnaud Simon <arnaudsimon@apache.org> | 2008-01-18 10:36:50 +0000 |
| commit | 70f2437cc12aa48958a0ff3f7a1d59ce29a5eb47 (patch) | |
| tree | e3e8c9f4c0806ad304472fe2f1b54c5152819eac /qpid/python/examples/direct | |
| parent | f1322e3e4a41c1282ac7daf3a8b0764beb7cea1b (diff) | |
| download | qpid-python-70f2437cc12aa48958a0ff3f7a1d59ce29a5eb47.tar.gz | |
Qpid-745
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@613126 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/examples/direct')
| -rw-r--r-- | qpid/python/examples/direct/declare_queues.py | 6 | ||||
| -rw-r--r-- | qpid/python/examples/direct/listener.py | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/qpid/python/examples/direct/declare_queues.py b/qpid/python/examples/direct/declare_queues.py index e64ad678b8..0160f66a1d 100644 --- a/qpid/python/examples/direct/declare_queues.py +++ b/qpid/python/examples/direct/declare_queues.py @@ -1,6 +1,6 @@ #!/usr/bin/env python """ - config_direct_exchange.py + declare_queues.py Creates and binds a queue on an AMQP direct exchange. @@ -33,9 +33,6 @@ session.session_open() #----- Create a queue ------------------------------------- -# Create a queue named "listener" on channel 1, and bind it -# to the "amq.direct" exchange. -# # queue_declare() creates an AMQP queue, which is held # on the broker. Published messages are sent to the AMQP queue, # from which messages are delivered to consumers. @@ -51,3 +48,4 @@ session.queue_bind(exchange="amq.direct", queue="message_queue", routing_key="ro session.session_close() + diff --git a/qpid/python/examples/direct/listener.py b/qpid/python/examples/direct/listener.py index e5eee72637..8324cc76a6 100644 --- a/qpid/python/examples/direct/listener.py +++ b/qpid/python/examples/direct/listener.py @@ -64,9 +64,9 @@ session.session_open() consumer_tag = "consumer1" queue = client.queue(consumer_tag) -# Call message_consume() to tell the broker to deliver messages +# Call message_subscribe() to tell the broker to deliver messages # from the AMQP queue to this local client queue. The broker will -# start delivering messages as soon as message_consume() is called. +# start delivering messages as soon as message_subscribe() is called. session.message_subscribe(queue="message_queue", destination=consumer_tag) session.message_flow(consumer_tag, 0, 0xFFFFFFFF) # Kill these? |
