Bug 1005750

Summary: Wrong example code for subscribing to XML Exchange
Product: Red Hat Enterprise MRG Reporter: Petr Matousek <pematous>
Component: Messaging_Programming_ReferenceAssignee: Jared MORGAN <jmorgan>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Matousek <pematous>
Severity: medium Docs Contact:
Priority: unspecified    
Version: DevelopmentCC: esammons, mmurray
Target Milestone: 3.0   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1005757 (view as bug list) Environment:
Last Closed: 2015-01-22 15:27:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1005757    

Description Petr Matousek 2013-09-09 10:38:31 UTC
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:

Comment 2 Petr Matousek 2013-10-24 16:02:32 UTC
Content approved.

-> VERIFIED