camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Autric <gaut...@redhat.com>
Subject Re: Automatically failing over UDP listner to another server:port
Date Mon, 05 Oct 2015 15:31:28 GMT
Hi,

maybe you should try this http://camel.apache.org/load-balancer.html 
with Failover policy 
Like 

<loadBalance>
       <failover>
           <exception>java.io.IOException</exception>
           <exception>com.mycompany.MyOtherException</exception>
       </failover>
       <to uri="netty4:udp://host_1:port_1/[?options]"/>
       <to uri="netty4:udp://host_1:port_2/[?options]"/>
</loadBalance>

hope it helps you,

best regards,

Greg AUTRIC                        
JBoss Middleware Consultant

email   : gautric __at__ redhat __dot__ com
twitter : @gautric_io

Red Hat Global Services            
Red Hat France SARL                sit: http://www.redhat.fr
Le Linea, 1 rue du General Leclerc, 92047 Paris La Défense Cedex
Sent from webmail

----- Mail original -----
De: "kanu_t" <kanutripathi@cypatterns.com>
À: users@camel.apache.org
Envoyé: Lundi 5 Octobre 2015 15:42:07
Objet: Automatically failing over UDP listner to another server:port

Our partner provides two UDP endpoints on two servers. One is primary and
other secondary.
We want to write a route that by default listens to primary but
automatically fail-over to secondary in case of primary connection problem.
Is it possible out of the box? I looked at netty4 component, but cannot find
anything to configure failure.



--
View this message in context: http://camel.465427.n5.nabble.com/Automatically-failing-over-UDP-listner-to-another-server-port-tp5772298.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message