Hi Carlo,
if you want round robin and failover you could think about using a
simple jms queue. If both your hosts listen on the queue then a jms
server like ActiveMQ will do round robin for all active listeners and
automatically leave out those that are not alive. Camel has very nice
support for jms.
In my company we do the complete SOA based on SOAP/JMS instead of
SOAP/HTTP. One of the most important reasons for the decision was the
above feature of jms.
Greetings
Christian
Carlo Camerino schrieb:
Hi There,
I have a situation in which I need to connect to two different hosts. I need
to be able to switch at runtime to a different host when one host goes down.
What enterprise integration pattern should I use here? I don't know if I
should use Dynamic Routing Or Load Balancing for this one.
The message could only go to one place at a time. As long as the first one
is up then I would have to go to it. But when it goes down, my application
automatically needs to fall back to the other host system.
In what way can I do this via Apache Camel .
Thanks!!!
Carlo