+++ This bug was initially created as a clone of Bug #1005750 +++ Description of problem: 4.10.4. Subscribe to the XML Exchange Following two lines shall be removed from the example code at the end of this chapter in order to show the proper xml exchange functionality. - rx = ssn.receiver('myxmlq; {create: always, link: {x-bindings: [{exchange: myxml, key: weather, arguments: {xquery: "./weather"}}]}}') - print rxaddr Explanation: The properly defined example consumer using a specific xml filter (rx = ssn.receiver(rxaddr)) is overwritten with a consumer that matches all the messages whose body content has the root XML element '<weather>'. The definition is followed by an extra print that was probably used for debug purpose and was left in the code. Version-Release number of selected component (if applicable): Messaging Programming Reference (mrg-m-2.x) - Revision 2-34 Messaging Programming Reference (mrg-m-3.0) - Revision 0.0.0-1 How reproducible: n/a Steps to Reproduce: n/a Actual results: Incorrect example code Expected results: functional example code Additional info:
Cloned for 2.3.x to highlight that this issue shall be fixed also in the MRG Messaging 2.x documentation.
Lines removed: http://deathstar1.usersys.redhat.com:3000/builds/8025-Messaging_Programming_Reference/#Subscribe_to_the_XML_Exchange
The example code has been fixed. -> VERIFIED
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_MRG/2/html-single/Messaging_Programming_Reference/index.html#Subscribe_to_the_XML_Exchange