I already modifed the example and it now works a little bit like the request
made HERE
<http://camel.465427.n5.nabble.com/Basic-Apache-Camel-LoadBalancer-Failover-Example-td5742551.html>
.
However, I still don't understand how the loadbalancer is getting the
replies. Yes, it does send the report to the direct:loadbalance URI, but
then it picks it up and sends it to the MINA servers:
<route id="loadbalancer">
<from uri="direct:loadbalance" />
<loadBalance inheritErrorHandler="false">
<failover />
<to uri="mina:tcp://localhost:9991?sync=true" />
<to uri="mina:tcp://localhost:9992?sync=true" />
</loadBalance>
<log message="${body}" />
</route>
In the MINA server's code, the servers are not explicitly sending anything
to the loadbalancer.
And in the loadbalancer, the only thing that is done is using the failvoer
construct.
There is not one single place in the code, where I actually see explicitly
what is going on, and to me, this is quite confusing.
--
View this message in context:
http://camel.465427.n5.nabble.com/Load-balancing-using-Mina-example-with-Java-DSL-tp5742566p5742585.html
Sent from the Camel - Users mailing list archive at Nabble.com.