summaryrefslogtreecommitdiff
path: root/cpp/examples/create_queue.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-06-13 13:06:05 +0000
committerAlan Conway <aconway@apache.org>2007-06-13 13:06:05 +0000
commit6e083cccf69ba8a8f9696da90835cde85c8be1a5 (patch)
tree3893c39197f5ec57f9616342a33cbd745031ef1d /cpp/examples/create_queue.cpp
parent9367367969d72676d54bb518377a990c52d444f0 (diff)
downloadqpid-python-6e083cccf69ba8a8f9696da90835cde85c8be1a5.tar.gz
Example updates from jrobie.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@546858 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/examples/create_queue.cpp')
-rw-r--r--cpp/examples/create_queue.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/cpp/examples/create_queue.cpp b/cpp/examples/create_queue.cpp
index 28a953806c..e30f40c1f6 100644
--- a/cpp/examples/create_queue.cpp
+++ b/cpp/examples/create_queue.cpp
@@ -62,12 +62,11 @@ int main() {
//--------- Main body of program --------------------------------------------
-// ## Alan: can I start the channel first, then declare the queue,
-// or does it need to be in this order?
Queue response("listener");
channel.declareQueue(response);
-
- channel.start();
+ channel.bind(Exchange::STANDARD_TOPIC_EXCHANGE, response, "listener");
+
+ channel.start();
//-----------------------------------------------------------------------------