Author: buildbot
Date: Sat Jan 26 17:18:17 2013
New Revision: 848075

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/urlrewrite.html

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/urlrewrite.html
==============================================================================
--- websites/production/camel/content/urlrewrite.html (original)
+++ websites/production/camel/content/urlrewrite.html Sat Jan 26 17:18:17 2013
@@ -140,6 +140,21 @@ myRewrite.setConfigFile(<span class="cod
 </pre>
 </div></div>
 
+<h4><a shape="rect" name="UrlRewrite-Usingloadbalancingeip"></a>Using load 
balancing eip</h4>
+
+<p>You can also use Camel's <a shape="rect" href="load-balancer.html" 
title="Load Balancer">Load Balancer</a> together with <a shape="rect" 
href="urlrewrite.html" title="UrlRewrite">UrlRewrite</a>, as shown below. In 
this code we use the failover load balancer, to failover to the 2nd endpoint 
(which goes to myapp3) in case of any exception thrown.</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
+<pre class="code-java"><span class="code-comment">// we want to use the 
failover loadbalancer
+</span><span class="code-comment">// to have it to react we must set 
throwExceptionOnFailure=<span class="code-keyword">true</span>, which is also 
the <span class="code-keyword">default</span> value
+</span><span class="code-comment">// so we can omit configuring <span 
class="code-keyword">this</span> option
+</span>from(<span class="code-quote">"jetty:http:<span 
class="code-comment">//localhost:{{port}}/myapp?matchOnUriPrefix=<span 
class="code-keyword">true</span>"</span>)
+</span>    .loadBalance().failover(Exception.class)
+        .to(<span class="code-quote">"jetty:http:<span 
class="code-comment">//localhost:{{port2}}/myapp2?bridgeEndpoint=<span 
class="code-keyword">true</span>&amp;throwExceptionOnFailure=<span 
class="code-keyword">true</span>&amp;urlRewrite=#myRewrite"</span>)
+</span>        .to(<span class="code-quote">"jetty:http:<span 
class="code-comment">//localhost:{{port2}}/myapp3?bridgeEndpoint=<span 
class="code-keyword">true</span>&amp;throwExceptionOnFailure=<span 
class="code-keyword">true</span>&amp;urlRewrite=#myRewrite"</span>);</span>
+</pre>
+</div></div>
+
+
 <h4><a shape="rect" 
name="UrlRewrite-UsingApachemodrewritestyleconfiguration"></a>Using Apache 
mod_rewrite style configuration</h4>
 
 <p>The <a shape="rect" class="external-link" 
href="http://code.google.com/p/urlrewritefilter/"; 
rel="nofollow">UrlRewriteFilter</a> project also supports Apache mod_rewrite 
style configuration. </p>


Reply via email to