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">&lt;to uri=<span 
class="code-quote">"direct:loadbalance"</span>/&gt;</span>
     <span class="code-tag">&lt;/route&gt;</span>
 
+               &lt;!-- use failover load balancer in round robin mode, to 
automatic failover to next server
+                    in case of failure --&gt;
     <span class="code-tag">&lt;route id=<span 
class="code-quote">"loadbalancer"</span>&gt;</span>
       <span class="code-tag">&lt;from uri=<span 
class="code-quote">"direct:loadbalance"</span>/&gt;</span>
-      <span class="code-tag">&lt;loadBalance&gt;</span>
-        <span class="code-tag">&lt;roundRobin/&gt;</span>
-        <span class="code-tag">&lt;to uri=<span 
class="code-quote">"mina:tcp://localhost:9991?sync=true&amp;amp;allowDefaultCodec=true"</span>/&gt;</span>
-        <span class="code-tag">&lt;to uri=<span 
class="code-quote">"mina:tcp://localhost:9992?sync=true&amp;amp;allowDefaultCodec=true"</span>/&gt;</span>
+      <span class="code-tag">&lt;loadBalance inheritErrorHandler=<span 
class="code-quote">"false"</span>&gt;</span>
+        <span class="code-tag">&lt;failover roundRobin=<span 
class="code-quote">"true"</span>/&gt;</span>
+        <span class="code-tag">&lt;to uri=<span 
class="code-quote">"mina:tcp://localhost:9991?sync=true"</span>/&gt;</span>
+        <span class="code-tag">&lt;to uri=<span 
class="code-quote">"mina:tcp://localhost:9992?sync=true"</span>/&gt;</span>
       <span class="code-tag">&lt;/loadBalance&gt;</span>
       <span class="code-tag">&lt;log message=<span 
class="code-quote">"${body}"</span>/&gt;</span>
     <span class="code-tag">&lt;/route&gt;</span>


Reply via email to