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 2012/11/07 10:18:07 UTC
svn commit: r837519 - in /websites/production/camel/content:
cache/main.pageCache loadbalancing-mina-example.html
Author: buildbot
Date: Wed Nov 7 09:18:07 2012
New Revision: 837519
Log:
Production update by buildbot for camel
Modified:
websites/production/camel/content/cache/main.pageCache
websites/production/camel/content/loadbalancing-mina-example.html
Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/camel/content/loadbalancing-mina-example.html
==============================================================================
--- websites/production/camel/content/loadbalancing-mina-example.html (original)
+++ websites/production/camel/content/loadbalancing-mina-example.html Wed Nov 7 09:18:07 2012
@@ -84,7 +84,7 @@ separate JVMs. The load balancer pattern
sending in Round Robin mode the messages created from a Camel Bean component<br clear="none">
alternatively between each server running on localhost:9991 and localhost:9992.</p>
-<p>Within this demo every five seconds, a Report object is created from the Camel load balancer server.<br clear="none">
+<p>Within this demo every ten seconds, a Report object is created from the Camel load balancer server.<br clear="none">
This object is sent by the Camel load balancer to a MINA server where the object is then serialized.<br clear="none">
One of the two MINA servers (localhost:9991 and localhost:9992) receives the object and enriches <br clear="none">
the message by setting the field reply of the Report object. The reply is sent back by the MINA <br clear="none">
@@ -111,12 +111,14 @@ server to the client, which then logs th
<span class="code-tag"><to uri=<span class="code-quote">"direct:loadbalance"</span>/></span>
<span class="code-tag"></route></span>
+ <!-- use failover load balancer in round robin mode, to automatic failover to next server
+ in case of failure -->
<span class="code-tag"><route id=<span class="code-quote">"loadbalancer"</span>></span>
<span class="code-tag"><from uri=<span class="code-quote">"direct:loadbalance"</span>/></span>
- <span class="code-tag"><loadBalance></span>
- <span class="code-tag"><roundRobin/></span>
- <span class="code-tag"><to uri=<span class="code-quote">"mina:tcp://localhost:9991?sync=true&amp;allowDefaultCodec=true"</span>/></span>
- <span class="code-tag"><to uri=<span class="code-quote">"mina:tcp://localhost:9992?sync=true&amp;allowDefaultCodec=true"</span>/></span>
+ <span class="code-tag"><loadBalance inheritErrorHandler=<span class="code-quote">"false"</span>></span>
+ <span class="code-tag"><failover roundRobin=<span class="code-quote">"true"</span>/></span>
+ <span class="code-tag"><to uri=<span class="code-quote">"mina:tcp://localhost:9991?sync=true"</span>/></span>
+ <span class="code-tag"><to uri=<span class="code-quote">"mina:tcp://localhost:9992?sync=true"</span>/></span>
<span class="code-tag"></loadBalance></span>
<span class="code-tag"><log message=<span class="code-quote">"${body}"</span>/></span>
<span class="code-tag"></route></span>