You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by jo...@apache.org on 2010/11/19 17:43:14 UTC
svn commit: r1036933 - /qpid/trunk/qpid/cpp/examples/messaging/hello_xml.cpp
Author: jonathan
Date: Fri Nov 19 16:43:14 2010
New Revision: 1036933
URL: http://svn.apache.org/viewvc?rev=1036933&view=rev
Log:
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 ...
Modified:
qpid/trunk/qpid/cpp/examples/messaging/hello_xml.cpp
Modified: qpid/trunk/qpid/cpp/examples/messaging/hello_xml.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/examples/messaging/hello_xml.cpp?rev=1036933&r1=1036932&r2=1036933&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/examples/messaging/hello_xml.cpp (original)
+++ qpid/trunk/qpid/cpp/examples/messaging/hello_xml.cpp Fri Nov 19 16:43:14 2010
@@ -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();
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org