From 65da4032319427aa0aab9ec099c09b6dee3cd2dd Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 13 Jun 2007 13:06:05 +0000 Subject: Example updates from jrobie. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@546858 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/examples/create_queue.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'qpid/cpp/examples/create_queue.cpp') diff --git a/qpid/cpp/examples/create_queue.cpp b/qpid/cpp/examples/create_queue.cpp index 28a953806c..e30f40c1f6 100644 --- a/qpid/cpp/examples/create_queue.cpp +++ b/qpid/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(); //----------------------------------------------------------------------------- -- cgit v1.2.1