camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r846344 - in /websites/production/camel/content: book-pattern-appendix.html dead-letter-channel.html
Date Sat, 12 Jan 2013 12:24:04 GMT
Author: buildbot
Date: Sat Jan 12 12:24:04 2013
New Revision: 846344

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/book-pattern-appendix.html
    websites/production/camel/content/dead-letter-channel.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 Sat Jan 12 12:24:04 2013
@@ -629,6 +629,23 @@ from(<span class="code-quote">"activemq:
 
 <p>Now suppose the route above and a failure happens in the <tt>foo</tt>
bean. Then the <tt>Exchange.TO_ENDPOINT</tt> and <tt>Exchange.FAILURE_ENDPOINT</tt>
will still contain the value of <tt><a shape="rect" class="external-link" href="http://someserver/somepath"
rel="nofollow">http://someserver/somepath</a></tt>.</p>
 
+
+<h3><a shape="rect" name="BookPatternAppendix-Whichroutefailed"></a>Which
route failed</h3>
+<p><b>Available as of Camel 2.10.4/2.11</b></p>
+
+<p>When Camel error handler handles an error such as <a shape="rect" href="dead-letter-channel.html"
title="Dead Letter Channel">Dead Letter Channel</a> or using <a shape="rect" href="exception-clause.html"
title="Exception Clause">Exception Clause</a> with handled=true, then Camel will
decorate<br clear="none">
+the <a shape="rect" href="exchange.html" title="Exchange">Exchange</a> with the
route id where the error occurred.</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+<span class="code-object">String</span> failedRouteId = exchange.getProperty(Exchange.FAILURE_ROUTE_ID,
<span class="code-object">String</span>.class);
+</pre>
+</div></div>
+<p>The <tt>Exchange.FAILURE_ROUTE_ID</tt> have the constant value <tt>CamelFailureRouteId</tt>.</p>
+
+<p>This allows for example you to fetch this information in your dead letter queue
and use that for error reporting.</p>
+
+
 <h3><a shape="rect" name="BookPatternAppendix-Controlifredeliveryisallowedduringstopping%2Fshutdown"></a>Control
if redelivery is allowed during stopping/shutdown</h3>
 <p><b>Available as of Camel 2.11</b></p>
 

Modified: websites/production/camel/content/dead-letter-channel.html
==============================================================================
--- websites/production/camel/content/dead-letter-channel.html (original)
+++ websites/production/camel/content/dead-letter-channel.html Sat Jan 12 12:24:04 2013
@@ -264,6 +264,23 @@ from(<span class="code-quote">"activemq:
 
 <p>Now suppose the route above and a failure happens in the <tt>foo</tt>
bean. Then the <tt>Exchange.TO_ENDPOINT</tt> and <tt>Exchange.FAILURE_ENDPOINT</tt>
will still contain the value of <tt><a shape="rect" class="external-link" href="http://someserver/somepath"
rel="nofollow">http://someserver/somepath</a></tt>.</p>
 
+
+<h3><a shape="rect" name="DeadLetterChannel-Whichroutefailed"></a>Which
route failed</h3>
+<p><b>Available as of Camel 2.10.4/2.11</b></p>
+
+<p>When Camel error handler handles an error such as <a shape="rect" href="dead-letter-channel.html"
title="Dead Letter Channel">Dead Letter Channel</a> or using <a shape="rect" href="exception-clause.html"
title="Exception Clause">Exception Clause</a> with handled=true, then Camel will
decorate<br clear="none">
+the <a shape="rect" href="exchange.html" title="Exchange">Exchange</a> with the
route id where the error occurred.</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+<span class="code-object">String</span> failedRouteId = exchange.getProperty(Exchange.FAILURE_ROUTE_ID,
<span class="code-object">String</span>.class);
+</pre>
+</div></div>
+<p>The <tt>Exchange.FAILURE_ROUTE_ID</tt> have the constant value <tt>CamelFailureRouteId</tt>.</p>
+
+<p>This allows for example you to fetch this information in your dead letter queue
and use that for error reporting.</p>
+
+
 <h3><a shape="rect" name="DeadLetterChannel-Controlifredeliveryisallowedduringstopping%2Fshutdown"></a>Control
if redelivery is allowed during stopping/shutdown</h3>
 <p><b>Available as of Camel 2.11</b></p>
 



Mime
View raw message