diff options
Diffstat (limited to 'qpid/cpp/examples/examples/pub-sub/topic_listener.cpp')
-rw-r--r-- | qpid/cpp/examples/examples/pub-sub/topic_listener.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/examples/examples/pub-sub/topic_listener.cpp b/qpid/cpp/examples/examples/pub-sub/topic_listener.cpp index e5292db703..c7e9d3877d 100644 --- a/qpid/cpp/examples/examples/pub-sub/topic_listener.cpp +++ b/qpid/cpp/examples/examples/pub-sub/topic_listener.cpp @@ -107,8 +107,8 @@ void Listener::prepareQueue(std::string queue, std::string routing_key) { * "control" routing key, when it is finished. */ - session.queueBind(arg::exchange="amq.topic", arg::queue=queue, arg::routingKey=routing_key); - session.queueBind(arg::exchange="amq.topic", arg::queue=queue, arg::routingKey="control"); + session.exchangeBind(arg::exchange="amq.topic", arg::queue=queue, arg::bindingKey=routing_key); + session.exchangeBind(arg::exchange="amq.topic", arg::queue=queue, arg::bindingKey="control"); /* * subscribe to the queue using the subscription manager. |