[
https://issues.apache.org/jira/browse/QPID-2860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gordon Sim resolved QPID-2860.
------------------------------
Fix Version/s: 0.7
Resolution: Fixed
The problem is that the example (of which I am not a fan!) auto-creates the
exchange it uses if it does not already exist. However it does not correctly
specify the exchange type, so a topic exchange is created which of course
ignores the xquery. Solution is to either declare an xml exchange named 'xml'
before running the test and/or modify the address used to auto-create it
correctly (I've checked in this fix).
> C++ hello_xml example receives all message content, not just what's wanted
> --------------------------------------------------------------------------
>
> Key: QPID-2860
> URL: https://issues.apache.org/jira/browse/QPID-2860
> Project: Qpid
> Issue Type: Bug
> Components: Qpid Examples
> Affects Versions: 0.7
> Environment: Linux (RHEL 5), Qpid svn trunk, xerces-c-2.7.0-8.el5
> Reporter: Steve Huston
> Assignee: Gordon Sim
> Priority: Minor
> Fix For: 0.7
>
>
> In using the qpid/cpp/examples/messaging/hello_xml.cpp example to figure
> something out, I changed the sent message's <station> element to Boston. This
> should cause the message to not pass the XQuery set in the receiver. But when
> executed, the "Boston" message is still received.
> $ ./hello_xml
> <weather><station>Boston
> (BOS)</station><wind_speed_mph>16</wind_speed_mph><temperature_f>70</temperature_f><dewpoint>35</dewpoint></weather>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]