summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Gemmell <robbie@apache.org>2010-11-22 23:24:26 +0000
committerRobert Gemmell <robbie@apache.org>2010-11-22 23:24:26 +0000
commitf8c3956720ffa7277f801372e2aa7614800bfdec (patch)
tree8863ed2bbd243c354c5bde28d485f57658c99dac
parente6dad7052ca1af429949144f439dda387520d57c (diff)
downloadqpid-python-f8c3956720ffa7277f801372e2aa7614800bfdec.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 ... merged from trunk r1036933 git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.8-release-candidates@1037936 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/cpp/examples/messaging/hello_xml.cpp6
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();