From 5652a1f2c2c1ccab95086494a811e00b24a700cd Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Wed, 11 Jun 2008 21:31:12 +0000 Subject: replaced example usages of message_flow with the start() method git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@666850 13f79535-47bb-0310-9956-ffa450edef68 --- python/examples/xml-exchange/xml_consumer.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'python/examples/xml-exchange/xml_consumer.py') 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. -- cgit v1.2.1