summaryrefslogtreecommitdiff
path: root/python/examples/xml-exchange/xml_consumer.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/examples/xml-exchange/xml_consumer.py')
-rwxr-xr-xpython/examples/xml-exchange/xml_consumer.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/python/examples/xml-exchange/xml_consumer.py b/python/examples/xml-exchange/xml_consumer.py
index 22973b2bd9..0ab079e7a6 100755
--- a/python/examples/xml-exchange/xml_consumer.py
+++ b/python/examples/xml-exchange/xml_consumer.py
@@ -51,11 +51,10 @@ local_queue = session.incoming(local_queue_name)
# Call message_consume() 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 local_queue.start() is called.
session.message_subscribe(queue="message_queue", destination=local_queue_name)
-session.message_flow(local_queue_name, session.credit_unit.message, 0xFFFFFFFF)
-session.message_flow(local_queue_name, session.credit_unit.byte, 0xFFFFFFFF)
+local_queue.start()
# Initialize 'final' and 'content', variables used to identify the last message.