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 | a2dc8ef943939742746e75c3d16d045e5522091c (patch) | |
tree | 3b9e566119e9e405c51cce69a5bd1348c53a32dd | |
parent | 269864e3af110e422040fc893da15ba0705de804 (diff) | |
download | qpid-python-a2dc8ef943939742746e75c3d16d045e5522091c.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/qpid@1036933 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | cpp/examples/messaging/hello_xml.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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) { "<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(); |