diff options
author | Jonathan Robie <jonathan@apache.org> | 2010-11-19 16:43:14 +0000 |
---|---|---|
committer | Jonathan Robie <jonathan@apache.org> | 2010-11-19 16:43:14 +0000 |
commit | febbb894948c3bec58f159ea16a26b1744df7683 (patch) | |
tree | e347ead5a37770a9cc213021cc7087ace832b8c0 /qpid/cpp/examples/messaging/hello_xml.cpp | |
parent | 139c347f3d8eae2445e3923c90ef355dd5216517 (diff) | |
download | qpid-python-febbb894948c3bec58f159ea16a26b1744df7683.tar.gz |
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@1036933 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/examples/messaging/hello_xml.cpp')
-rw-r--r-- | qpid/cpp/examples/messaging/hello_xml.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qpid/cpp/examples/messaging/hello_xml.cpp b/qpid/cpp/examples/messaging/hello_xml.cpp index 6e9aa0ad6a..00e1b6c8e1 100644 --- a/qpid/cpp/examples/messaging/hello_xml.cpp +++ b/qpid/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) { "<temperature_f>70</temperature_f>" "<dewpoint>35</dewpoint>" "</weather>"); - Sender sender = session.createSender("xml/weather"); + Sender sender = session.createSender("xml-exchange/weather"); sender.send(message); Message response = receiver.fetch(); |