You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bu...@apache.org on 2013/02/26 15:24:33 UTC
svn commit: r852054 - in /websites/production/camel/content:
book-pattern-appendix.html camel-30-message-store.html routing-slip.html
Author: buildbot
Date: Tue Feb 26 14:24:33 2013
New Revision: 852054
Log:
Production update by buildbot for camel
Modified:
websites/production/camel/content/book-pattern-appendix.html
websites/production/camel/content/camel-30-message-store.html
websites/production/camel/content/routing-slip.html
Modified: websites/production/camel/content/book-pattern-appendix.html
==============================================================================
--- websites/production/camel/content/book-pattern-appendix.html (original)
+++ websites/production/camel/content/book-pattern-appendix.html Tue Feb 26 14:24:33 2013
@@ -3207,11 +3207,11 @@ from(<span class="code-quote">"seda:quot
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
-from(<span class="code-quote">"activemq:SomeQueue"</span>).routingSlip(<span class="code-quote">"headerName"</span>);
+from(<span class="code-quote">"activemq:SomeQueue"</span>).routingSlip(<span class="code-quote">"aRoutingSlipHeader"</span>);
</pre>
</div></div>
-<p>Messages will be checked for the existance of the "headerName" header. The value of this header should be a comma-delimited list of endpoint <a shape="rect" href="uris.html" title="URIs">URIs</a> you wish the message to be routed to. The <a shape="rect" href="message.html" title="Message">Message</a> will be routed in a <a shape="rect" href="pipes-and-filters.html" title="Pipes and Filters">pipeline</a> fashion (i.e. one after the other).</p>
+<p>Messages will be checked for the existance of the "aRoutingSlipHeader" header. The value of this header should be a comma-delimited list of endpoint <a shape="rect" href="uris.html" title="URIs">URIs</a> you wish the message to be routed to. The <a shape="rect" href="message.html" title="Message">Message</a> will be routed in a <a shape="rect" href="pipes-and-filters.html" title="Pipes and Filters">pipeline</a> fashion (i.e. one after the other).</p>
<p>From Camel 2.5 the <a shape="rect" href="routing-slip.html" title="Routing Slip">Routing Slip</a> will set a property (<tt>Exchange.SLIP_ENDPOINT</tt>) on the <a shape="rect" href="exchange.html" title="Exchange">Exchange</a> which contains the current endpoint as it advanced though the slip. This allows you to <em>know</em> how far we have processed in the slip.</p>
@@ -3233,7 +3233,9 @@ from(<span class="code-quote">"activemq:
<camelContext id=<span class="code-quote">"buildRoutingSlip"</span> xmlns=<span class="code-quote">"http:<span class="code-comment">//activemq.apache.org/camel/schema/spring"</span>>
</span> <route>
<from uri=<span class="code-quote">"direct:c"</span>/>
- <routingSlip headerName=<span class="code-quote">"aRoutingSlipHeader"</span> uriDelimiter=<span class="code-quote">"#"</span>/>
+ <routingSlip uriDelimiter=<span class="code-quote">"#"</span>>
+ <header>aRoutingSlipHeader</header>
+ </routingSlip>
</route>
</camelContext>
</pre>
@@ -3256,7 +3258,9 @@ from(<span class="code-quote">"activemq:
<pre class="code-java">
<route>
<from uri=<span class="code-quote">"direct:a"</span>/>
- <routingSlip headerName=<span class="code-quote">"myHeader"</span> ignoreInvalidEndpoints=<span class="code-quote">"<span class="code-keyword">true</span>"</span>/>
+ <routingSlip ignoreInvalidEndpoints=<span class="code-quote">"<span class="code-keyword">true</span>"</span>/>
+ <header>myHeader</header>
+ </routingSlip>
</route>
</pre>
</div></div>
Modified: websites/production/camel/content/camel-30-message-store.html
==============================================================================
--- websites/production/camel/content/camel-30-message-store.html (original)
+++ websites/production/camel/content/camel-30-message-store.html Tue Feb 26 14:24:33 2013
@@ -109,13 +109,22 @@ Implementations would handle the mapping
<ul><li>There is a default message store defined for the Camel Context. This can be overridden by a route-specific message store. This again can be overridden by a specific EIP processor.</li></ul>
+<h3><a shape="rect" name="Camel3.0-MessageStore-MessageStoreData"></a>Message Store Data</h3>
+
+<p>In order to disambiguate stored exchanges and make them retrievable again, message store entries must carry attributes in addition to the marshaled exchange.</p>
+
+<div class="table-wrap">
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Item </th><th colspan="1" rowspan="1" class="confluenceTh"> Description/Reason </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> ID </td><td colspan="1" rowspan="1" class="confluenceTd"> Generated unique ID of the entry </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> Exchange </td><td colspan="1" rowspan="1" class="confluenceTd"> exchange (or parts thereof), usually in some marshalled form (except in-memory stores) </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> CamelContext </td><td colspan="1" rowspan="1" class="confluenceTd"> A message store may be used by several CamelContext instances </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> Correlation </td><td colspan="1" rowspan="1" class="confluenceTd"> Correlation ID to be able to aggregate related exchanges </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> So
urce </td><td colspan="1" rowspan="1" class="confluenceTd"> Identifier that uniquely describes the point in the route from which an exchange was stored. E.g. there might be more than one aggregator processor in a route. Could also be used to manually or automatically refeed exchanges back into the route </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> Status </td><td colspan="1" rowspan="1" class="confluenceTd"> Status of an exchange (e.g. PROCESSING, DONE, FAILED) </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> CreationTime </td><td colspan="1" rowspan="1" class="confluenceTd"> Timestamp when the entry was created </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> ExpirationTime </td><td colspan="1" rowspan="1" class="confluenceTd"> Timestamp when the entry can be considered as expired and picked up by some cleaning process </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> ... </td><td colspan="1" rowspan="1" class="
confluenceTd"> ... more? </td></tr></tbody></table>
+</div>
+
+
<h3><a shape="rect" name="Camel3.0-MessageStore-Codeexamples"></a>Code examples</h3>
<div class="panelMacro"><table class="noteMacro"><colgroup span="1"><col span="1" width="24"><col span="1"></colgroup><tr><td colspan="1" rowspan="1" valign="top"><img align="middle" src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" alt="" border="0"></td><td colspan="1" rowspan="1"><b>Work in progress</b><br clear="none">Sometimes it is easier to express thoughts by providing a fictional piece of code along with some comments....</td></tr></table></div>
-<p>This section intends to demonstrate the usage of a Message Store by providing hypotethical code snippets, e.g.</p>
+<p>This section intends to demonstrate the usage of a Message Store by providing hypothetical code snippets, e.g.</p>
<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>AggregatorExample.java</b></div><div class="codeContent panelContent">
<pre class="code-java">
Modified: websites/production/camel/content/routing-slip.html
==============================================================================
--- websites/production/camel/content/routing-slip.html (original)
+++ websites/production/camel/content/routing-slip.html Tue Feb 26 14:24:33 2013
@@ -95,11 +95,11 @@
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
-from(<span class="code-quote">"activemq:SomeQueue"</span>).routingSlip(<span class="code-quote">"headerName"</span>);
+from(<span class="code-quote">"activemq:SomeQueue"</span>).routingSlip(<span class="code-quote">"aRoutingSlipHeader"</span>);
</pre>
</div></div>
-<p>Messages will be checked for the existance of the "headerName" header. The value of this header should be a comma-delimited list of endpoint <a shape="rect" href="uris.html" title="URIs">URIs</a> you wish the message to be routed to. The <a shape="rect" href="message.html" title="Message">Message</a> will be routed in a <a shape="rect" href="pipes-and-filters.html" title="Pipes and Filters">pipeline</a> fashion (i.e. one after the other).</p>
+<p>Messages will be checked for the existance of the "aRoutingSlipHeader" header. The value of this header should be a comma-delimited list of endpoint <a shape="rect" href="uris.html" title="URIs">URIs</a> you wish the message to be routed to. The <a shape="rect" href="message.html" title="Message">Message</a> will be routed in a <a shape="rect" href="pipes-and-filters.html" title="Pipes and Filters">pipeline</a> fashion (i.e. one after the other).</p>
<p>From Camel 2.5 the <a shape="rect" href="routing-slip.html" title="Routing Slip">Routing Slip</a> will set a property (<tt>Exchange.SLIP_ENDPOINT</tt>) on the <a shape="rect" href="exchange.html" title="Exchange">Exchange</a> which contains the current endpoint as it advanced though the slip. This allows you to <em>know</em> how far we have processed in the slip.</p>
@@ -121,7 +121,9 @@ from(<span class="code-quote">"activemq:
<camelContext id=<span class="code-quote">"buildRoutingSlip"</span> xmlns=<span class="code-quote">"http:<span class="code-comment">//activemq.apache.org/camel/schema/spring"</span>>
</span> <route>
<from uri=<span class="code-quote">"direct:c"</span>/>
- <routingSlip headerName=<span class="code-quote">"aRoutingSlipHeader"</span> uriDelimiter=<span class="code-quote">"#"</span>/>
+ <routingSlip uriDelimiter=<span class="code-quote">"#"</span>>
+ <header>aRoutingSlipHeader</header>
+ </routingSlip>
</route>
</camelContext>
</pre>
@@ -144,7 +146,9 @@ from(<span class="code-quote">"activemq:
<pre class="code-java">
<route>
<from uri=<span class="code-quote">"direct:a"</span>/>
- <routingSlip headerName=<span class="code-quote">"myHeader"</span> ignoreInvalidEndpoints=<span class="code-quote">"<span class="code-keyword">true</span>"</span>/>
+ <routingSlip ignoreInvalidEndpoints=<span class="code-quote">"<span class="code-keyword">true</span>"</span>/>
+ <header>myHeader</header>
+ </routingSlip>
</route>
</pre>
</div></div>