summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rwxr-xr-xpython/hello-world5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/hello-world b/python/hello-world
index b05873dff3..fd712d324b 100755
--- a/python/hello-world
+++ b/python/hello-world
@@ -7,5 +7,8 @@ client = Client("127.0.0.1", 5672, qpid.spec.load("../specs/amqp.0-9.xml"))
client.start({"LOGIN": "guest", "PASSWORD": "guest"})
ch = client.channel(1)
ch.channel_open()
-ch.message_transfer(destination="amq.direct", routing_key="asdf",
+ch.queue_declare(queue="test")
+ch.queue_bind(exchange="amq.direct", queue="test", routing_key="test")
+ch.message_consume(queue="test", destination="test")
+ch.message_transfer(destination="amq.direct", routing_key="test",
body="hello world")