Effective October 27, 2012, online and email support for FuseSource products will move to Red Hat support channels. For more information, please see the JIRA Migration to Red Hat FAQ.
As of October 27th, please open all new issues in the Red Hat Customer Portal .
Issue Details (XML | Word | Printable)

Key: MR-222
Type: Documentation Documentation
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Fintan Bolton
Reporter: Paul DiSabito
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
FUSE Mediation Router

Revisit material in Defining Routes guide about using Exhange objects for correlation

Created: 21/Jul/09 03:21 PM   Updated: 17/Mar/10 11:45 AM
Component/s: documentation
Affects Version/s: 1.6.1.0-fuse
Fix Version/s: 2.2.0-fuse-01-00


 Description  « Hide
The "Defining Routes" guide has the following bit about correlation:

When a router rule is activated, it can process messages passing in either
direction: from source to target or from target back to source. For example,
if a router rule is mediating a remote procedure call (RPC), the rule processes
requests, replies, and faults. How do you manage message correlation in this
case? One of the most effective and straightforward ways is to use a message
exchange object as the basis for processing messages. FUSE Mediation Router
uses message exchange objects (of org.apache.camel.Exchange type) in
its API for processing router rules.
The basic idea of the message exchange is that, instead of accessing requests,
replies, and faults separately, you encapsulate the correlated messages inside
a single object (an Exchange object). Message correlation now becomes trivial
from the perspective of a processor, because correlated messages are
encapsulated in a single Exchange object and processors gain access to
messages through the Exchange object.

We need to revisit this section in light of Claus Ibsen's feedback regarding the "Component User Guide" document:

> Exchange objects also provide a means of correlating messages, because related messages are stored in the same Exchange.
Hmm I dont see it like that. For instance using JMS messages are correlated using the JMSCorrelationID. Each message is stored in their own Exchange but they have a header with the CorrelationID so you can correlate them if needed.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Fintan Bolton added a comment - 17/Mar/10 11:45 AM
The "Defining Routes" book has now been incorporated in to the "Implementing EIPs" book. The discussion of Exchange has been updated to bring it into line with Claus's description.