From a2dc8ef943939742746e75c3d16d045e5522091c Mon Sep 17 00:00:00 2001 From: Jonathan Robie Date: Fri, 19 Nov 2010 16:43:14 +0000 Subject: Changed the name of the declared exchange from 'xml' to 'xml-exchange'. Avoids an error that occurs if the broker also has a queue named 'xml'. Which happens fairly easily if you're testing XML messaging ... git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1036933 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/examples/messaging/hello_xml.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpp/examples/messaging/hello_xml.cpp') diff --git a/cpp/examples/messaging/hello_xml.cpp b/cpp/examples/messaging/hello_xml.cpp index 6e9aa0ad6a..00e1b6c8e1 100644 --- a/cpp/examples/messaging/hello_xml.cpp +++ b/cpp/examples/messaging/hello_xml.cpp @@ -45,11 +45,11 @@ int main(int argc, char** argv) { stringstream address; - address << "xml; {" + address << "xml-exchange; {" " create: always, " // This line and the next are not in docs " node: { type: topic, x-declare: { type: xml } }, " // Added so it works "out of the box" " link: { " - " x-bindings: [{ exchange: xml, key: weather, arguments: { xquery:\"" + " x-bindings: [{ exchange: xml-exchange, key: weather, arguments: { xquery:\"" << query << "\"} }] " " } " @@ -70,7 +70,7 @@ int main(int argc, char** argv) { "70" "35" ""); - Sender sender = session.createSender("xml/weather"); + Sender sender = session.createSender("xml-exchange/weather"); sender.send(message); Message response = receiver.fetch(); -- cgit v1.2.1