You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ro...@apache.org on 2010/11/23 00:24:26 UTC

svn commit: r1037936 - in /qpid/branches/0.8-release-candidates/qpid/cpp/examples/messaging: ./ hello_xml.cpp

Author: robbie
Date: Mon Nov 22 23:24:26 2010
New Revision: 1037936

URL: http://svn.apache.org/viewvc?rev=1037936&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 ...
    
merged from trunk r1036933

Modified:
    qpid/branches/0.8-release-candidates/qpid/cpp/examples/messaging/   (props changed)
    qpid/branches/0.8-release-candidates/qpid/cpp/examples/messaging/hello_xml.cpp

Propchange: qpid/branches/0.8-release-candidates/qpid/cpp/examples/messaging/
------------------------------------------------------------------------------
--- svn:mergeinfo (added)
+++ svn:mergeinfo Mon Nov 22 23:24:26 2010
@@ -0,0 +1,5 @@
+/qpid/branches/0.5.x-dev/qpid/cpp/examples/messaging:892761,894875
+/qpid/branches/0.6-release-windows-installer/cpp/examples/messaging:926803
+/qpid/branches/0.6-release-windows-installer/qpid/cpp/examples/messaging:926803,927233
+/qpid/branches/java-network-refactor/qpid/cpp/examples/messaging:805429-825319
+/qpid/trunk/qpid/cpp/examples/messaging:1033975,1036933

Modified: qpid/branches/0.8-release-candidates/qpid/cpp/examples/messaging/hello_xml.cpp
URL: http://svn.apache.org/viewvc/qpid/branches/0.8-release-candidates/qpid/cpp/examples/messaging/hello_xml.cpp?rev=1037936&r1=1037935&r2=1037936&view=diff
==============================================================================
--- qpid/branches/0.8-release-candidates/qpid/cpp/examples/messaging/hello_xml.cpp (original)
+++ qpid/branches/0.8-release-candidates/qpid/cpp/examples/messaging/hello_xml.cpp Mon Nov 22 23:24:26 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