camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [CONF] Apache Camel > Message History
Date Mon, 05 Nov 2012 14:06:00 GMT
    <base href="">
            <link rel="stylesheet" href="/confluence/s/2042/9/1/_/styles/combined.css?spaceKey=CAMEL&amp;forWysiwyg=true"
<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="">Message
    <h4>Page <b>edited</b> by             <a href="">Glen
        <div id="versionComment">
        rephrasing<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>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <h3><a name="MessageHistory-MessageHistory"></a>Message History</h3>

<p>The <a href="" 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=""
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=""
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 id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href=""
class="grey">Change Notification Preferences</a>
        <a href="">View
        <a href="">View
        <a href=";showCommentArea=true#addcomment">Add

View raw message