summaryrefslogtreecommitdiff
path: root/python/examples/request-response/server.py
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2008-06-11 21:31:12 +0000
committerRafael H. Schloming <rhs@apache.org>2008-06-11 21:31:12 +0000
commit5652a1f2c2c1ccab95086494a811e00b24a700cd (patch)
tree29dcdcaf9eb2bffb1f3f22b228d02737777a6bbe /python/examples/request-response/server.py
parent1bc8bc59f5221cb5b1607e1b5eff34ad312a77fa (diff)
downloadqpid-python-5652a1f2c2c1ccab95086494a811e00b24a700cd.tar.gz
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
Diffstat (limited to 'python/examples/request-response/server.py')
-rwxr-xr-xpython/examples/request-response/server.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/python/examples/request-response/server.py b/python/examples/request-response/server.py
index 99b1431509..05ee051c57 100755
--- a/python/examples/request-response/server.py
+++ b/python/examples/request-response/server.py
@@ -60,9 +60,9 @@ session.exchange_bind(exchange="amq.direct", queue="request", binding_key="reque
local_queue_name = "local_queue"
session.message_subscribe(queue="request", 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)
+queue = session.incoming(local_queue_name)
+queue.start()
# Remind the user to start the client program
@@ -72,8 +72,6 @@ sys.stdout.flush()
# Respond to each request
-queue = session.incoming(local_queue_name)
-
# If we get a message, send it back to the user (as indicated in the
# ReplyTo property)