summaryrefslogtreecommitdiff
path: root/qpid/cpp/examples
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2012-11-14 11:21:18 +0000
committerGordon Sim <gsim@apache.org>2012-11-14 11:21:18 +0000
commit0e87dbcfe3b227b212b7015085b4c9f6a96acceb (patch)
tree3f38f1dfce5c3ff7495614e77d3a87957ee37851 /qpid/cpp/examples
parent5e510a9d8ba5fb522a31eeb5c3feb18eeea2f279 (diff)
downloadqpid-python-0e87dbcfe3b227b212b7015085b4c9f6a96acceb.tar.gz
NO-JIRA: Fail on invalid PLAIN request
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1409161 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/examples')
-rw-r--r--qpid/cpp/examples/messaging/client.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/qpid/cpp/examples/messaging/client.cpp b/qpid/cpp/examples/messaging/client.cpp
index f0ecd96206..9618123aa2 100644
--- a/qpid/cpp/examples/messaging/client.cpp
+++ b/qpid/cpp/examples/messaging/client.cpp
@@ -48,8 +48,9 @@ int main(int argc, char** argv) {
Sender sender = session.createSender("service_queue");
//create temp queue & receiver...
- Address responseQueue("#response-queue; {create:always, delete:always}");
- Receiver receiver = session.createReceiver(responseQueue);
+ std::stringstream replies;
+ replies << "amq.direct/" << qpid::types::Uuid(true) << "; {node: {type:topic}}";
+ Receiver receiver = session.createReceiver(replies.str());
// Now send some messages ...
string s[] = {
@@ -60,7 +61,7 @@ int main(int argc, char** argv) {
};
Message request;
- request.setReplyTo(responseQueue);
+ request.setReplyTo(replies.str());
for (int i=0; i<4; i++) {
request.setContent(s[i]);
sender.send(request);