After much effort, I have found a way to implement this basing myself on the loadbalancer example provided by apache.
I have uploadded the eclipse project to my github account, you can check it working here: - https://github.com/Fl4m3Ph03n1x/stackoverflow/tree/master/loadbalancer-failover-springdsl-example Although my example does respect the overall intended architecture, it does have few differences as explained bellow: - It uses the Spring DSL instead of the Java DSL - MyApp-A is the loadbalancer. Every 10 it generates a report (instead of reading a file) and it sends it to MyApp-B. - MyApp-B corresponds to MINA server 1 on localhost:9991 - MyApp-C corresponds to MINA server 3 on localhost:9993 - MyApp-D corresponds to MINA server 2 on localhost:9992 - When MyApp-C receives the report, it sends it back to MyApp-A Furthermore, it is also not clear when, where or why MyApp-C replies to MyApp-A with the changed report. This behavior is not specified in the Spring DSL code and so far no one was able to explain to me why this is even happening. So two problems remain: 1. How would this be done using the Java DSL 2. Why is the MyApp-C replying to MyApp-A and how is it doing it? Also, this may sound silly but ... would someone consider adding my example to the documentation if I commented it well? -- View this message in context: http://camel.465427.n5.nabble.com/Basic-Apache-Camel-LoadBalancer-Failover-Example-tp5742551p5742650.html Sent from the Camel - Users mailing list archive at Nabble.com.
