camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Camel > Message History
Date Mon, 05 Nov 2012 14:06:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/2042/9/1/_/styles/combined.css?spaceKey=CAMEL&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/CAMEL/Message+History">Message
History</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~mazzag">Glen
Mazza</a>
    </h4>
        <div id="versionComment">
        <b>Comment:</b>
        rephrasing<br />
    </div>
        <br/>
                         <h4>Changes (1)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" > <br>When Camel sends a message
to an endpoint that endpoint information is stored on the [Exchange] as a property with the
key {{Exchange.TO_ENDPOINT}}. <br></td></tr>
            <tr><td class="diff-changed-lines" >This property contains the last
known endpoint the [Exchange] was sent to (it will be overridden when sending to new endpoint).
<span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">Though
it allows</span> <span class="diff-added-words"style="background-color: #dfd;">Alternatively</span>
you <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">to</span>
<span class="diff-added-words"style="background-color: #dfd;">can</span> trace
messages being sent using [interceptors|Intercept] or the [Event Notifier|EventNotifier to
log details about all sent Exchanges]. <br></td></tr>
            <tr><td class="diff-unchanged" > <br>{tip} <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <h3><a name="MessageHistory-MessageHistory"></a>Message History</h3>

<p>The <a href="http://www.eaipatterns.com/MessageHistory.html" class="external-link"
rel="nofollow">Message History</a> from the <a href="/confluence/display/CAMEL/Enterprise+Integration+Patterns"
title="Enterprise Integration Patterns">EIP patterns</a> allows for analyzing and
debugging the flow of messages in a loosely coupled system.</p>

<p><span class="image-wrap" style=""><img src="http://www.eaipatterns.com/img/MessageHistory.gif"
style="border: 0px solid black" /></span></p>

<p>Attaching a Message History to the message will provide a list of all applications
that the message passed through since its origination.</p>

<p>In Camel you can trace message flow using the <a href="/confluence/display/CAMEL/Tracer"
title="Tracer">Tracer</a>, or access information using the Java API from <a href="http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/spi/UnitOfWork.html"
class="external-link" rel="nofollow">UnitOfWork</a> using the <tt>getTracedRouteNodes</tt>
method. </p>

<p>When Camel sends a message to an endpoint that endpoint information is stored on
the <a href="/confluence/display/CAMEL/Exchange" title="Exchange">Exchange</a>
as a property with the key <tt>Exchange.TO_ENDPOINT</tt>.<br/>
This property contains the last known endpoint the <a href="/confluence/display/CAMEL/Exchange"
title="Exchange">Exchange</a> was sent to (it will be overridden when sending to
new endpoint). Alternatively you can trace messages being sent using <a href="/confluence/display/CAMEL/Intercept"
title="Intercept">interceptors</a> or the <a href="/confluence/display/CAMEL/EventNotifier+to+log+details+about+all+sent+Exchanges"
title="EventNotifier to log details about all sent Exchanges">Event Notifier</a>.</p>

<div class='panelMacro'><table class='tipMacro'><colgroup><col width='24'><col></colgroup><tr><td
valign='top'><img src="/confluence/images/icons/emoticons/check.gif" width="16" height="16"
align="absmiddle" alt="" border="0"></td><td>The <a href="/confluence/display/CAMEL/Message+History"
title="Message History">Message History</a> is scheduled for refactoring and improvement
in Camel 3.0, to make it better and easier for end users to access details.</td></tr></table></div>

<h4><a name="MessageHistory-UsingThisPattern"></a>Using This Pattern</h4>

<p>If you would like to use this EIP Pattern then please read the <a href="/confluence/display/CAMEL/Getting+Started"
title="Getting Started">Getting Started</a>, you may also find the <a href="/confluence/display/CAMEL/Architecture"
title="Architecture">Architecture</a> useful particularly the description of <a
href="/confluence/display/CAMEL/Endpoint" title="Endpoint">Endpoint</a> and <a
href="/confluence/display/CAMEL/URIs" title="URIs">URIs</a>. Then you could try out
some of the <a href="/confluence/display/CAMEL/Examples" title="Examples">Examples</a>
first before trying this pattern out.</p>
    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
        </div>
        <a href="https://cwiki.apache.org/confluence/display/CAMEL/Message+History">View
Online</a>
        |
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=30741114&revisedVersion=5&originalVersion=4">View
Changes</a>
                |
        <a href="https://cwiki.apache.org/confluence/display/CAMEL/Message+History?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message