summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-05-26 18:29:24 +0000
committerAlan Conway <aconway@apache.org>2008-05-26 18:29:24 +0000
commit4f9b23872a0445571eaa77348c6c5553c6d89d2a (patch)
tree45989c04ecabc568d9deeb890a1dc1eb9f7fcdb4 /cpp
parentce7678789fe3e8c5caebb59a26aa418fbb95e5d3 (diff)
downloadqpid-python-4f9b23872a0445571eaa77348c6c5553c6d89d2a.tar.gz
Corrected examples for new session API.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@660265 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/examples/examples/direct/direct_producer.cpp1
-rw-r--r--cpp/examples/examples/fanout/fanout_producer.cpp1
-rw-r--r--cpp/examples/examples/fanout/listener.cpp2
-rw-r--r--cpp/examples/examples/pub-sub/topic_publisher.cpp1
-rw-r--r--cpp/examples/examples/request-response/client.cpp2
-rw-r--r--cpp/examples/examples/xml-exchange/xml_producer.cpp1
6 files changed, 6 insertions, 2 deletions
diff --git a/cpp/examples/examples/direct/direct_producer.cpp b/cpp/examples/examples/direct/direct_producer.cpp
index 348b82efae..40fc644bf3 100644
--- a/cpp/examples/examples/direct/direct_producer.cpp
+++ b/cpp/examples/examples/direct/direct_producer.cpp
@@ -45,6 +45,7 @@
#include <qpid/client/Connection.h>
#include <qpid/client/Session.h>
+#include <qpid/client/AsyncSession.h>
#include <qpid/client/Message.h>
diff --git a/cpp/examples/examples/fanout/fanout_producer.cpp b/cpp/examples/examples/fanout/fanout_producer.cpp
index 9a80c86c20..a1ca407847 100644
--- a/cpp/examples/examples/fanout/fanout_producer.cpp
+++ b/cpp/examples/examples/fanout/fanout_producer.cpp
@@ -45,6 +45,7 @@
#include <qpid/client/Connection.h>
#include <qpid/client/Session.h>
+#include <qpid/client/AsyncSession.h>
#include <qpid/client/Message.h>
diff --git a/cpp/examples/examples/fanout/listener.cpp b/cpp/examples/examples/fanout/listener.cpp
index 79a115f99f..d9bf9789dc 100644
--- a/cpp/examples/examples/fanout/listener.cpp
+++ b/cpp/examples/examples/fanout/listener.cpp
@@ -79,7 +79,7 @@ int main(int argc, char** argv) {
// for routing decisions. It can be useful for tracking
// messages and routing in logs.
- std::string myQueue=session.getId().str();
+ std::string myQueue=session.getId().getName();
session.queueDeclare(arg::queue=myQueue, arg::exclusive=true,
arg::autoDelete=true);
diff --git a/cpp/examples/examples/pub-sub/topic_publisher.cpp b/cpp/examples/examples/pub-sub/topic_publisher.cpp
index edf6ff28f7..ab485fec8f 100644
--- a/cpp/examples/examples/pub-sub/topic_publisher.cpp
+++ b/cpp/examples/examples/pub-sub/topic_publisher.cpp
@@ -44,6 +44,7 @@
#include <qpid/client/Connection.h>
#include <qpid/client/Session.h>
+#include <qpid/client/AsyncSession.h>
#include <qpid/client/Message.h>
diff --git a/cpp/examples/examples/request-response/client.cpp b/cpp/examples/examples/request-response/client.cpp
index eb4c00c2f1..7540de30ff 100644
--- a/cpp/examples/examples/request-response/client.cpp
+++ b/cpp/examples/examples/request-response/client.cpp
@@ -123,7 +123,7 @@ int main(int argc, char** argv) {
// of the response queue.
stringstream response_queue;
- response_queue << "client" << session.getId();
+ response_queue << "client" << session.getId().getName();
// Use the name of the response queue as the routing key
diff --git a/cpp/examples/examples/xml-exchange/xml_producer.cpp b/cpp/examples/examples/xml-exchange/xml_producer.cpp
index 42e9ec4356..19889e4891 100644
--- a/cpp/examples/examples/xml-exchange/xml_producer.cpp
+++ b/cpp/examples/examples/xml-exchange/xml_producer.cpp
@@ -22,6 +22,7 @@
#include <qpid/client/Connection.h>
#include <qpid/client/Session.h>
+#include <qpid/client/AsyncSession.h>
#include <qpid/client/Message.h>