diff options
Diffstat (limited to 'python/examples/xml-exchange')
-rwxr-xr-x | python/examples/xml-exchange/listener.py | 5 | ||||
-rwxr-xr-x | python/examples/xml-exchange/xml_consumer.py | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/python/examples/xml-exchange/listener.py b/python/examples/xml-exchange/listener.py index db12d57e3e..dec824dddf 100755 --- a/python/examples/xml-exchange/listener.py +++ b/python/examples/xml-exchange/listener.py @@ -68,11 +68,10 @@ local_queue = session.incoming(local_queue_name) # 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_subscribe() 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() receiver = Receiver () local_queue.listen (receiver.Handler) 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. |