You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Naresh (JIRA)" <ji...@apache.org> on 2018/05/01 23:32:00 UTC
[jira] [Commented] (CAMEL-12477) How to add loadbalancing for http4
component in apache camel.
[ https://issues.apache.org/jira/browse/CAMEL-12477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16460302#comment-16460302 ]
Naresh commented on CAMEL-12477:
--------------------------------
How to point multiple "to" addresses with different severs here.
rules.getRules().forEach(x->{
from("jetty:http://0.0.0.0:"+rules.getPort()+"/"+x.getFrom()+"??matchOnUriPrefix=true")
.to("http4://"+x.getTo()+"?bridgeEndpoint=true&throwExceptionOnFailure=false");});
Please guide me.
Thanks
> How to add loadbalancing for http4 component in apache camel.
> -------------------------------------------------------------
>
> Key: CAMEL-12477
> URL: https://issues.apache.org/jira/browse/CAMEL-12477
> Project: Camel
> Issue Type: Bug
> Reporter: Naresh
> Priority: Major
>
> How to add loadbalancing for http4 component in apache camel.
> rules.getRules().forEach(x->{
> from("jetty:http://0.0.0.0:"+rules.getPort()+"/"+x.getFrom()+"??matchOnUriPrefix=true")
> .to("http4://"+x.getTo()+"?bridgeEndpoint=true&throwExceptionOnFailure=false");});
>
> Please check the sample routing below(X value)
> -----------------------------------------------
> Ieration Route: \{"RouteRule":{ "from":"posts", "to":"jsonplaceholder.typicode.com/posts/?"}}
> Ieration Route: \{"RouteRule":{ "from":"users", "to":"reqres.in/api/users"}}
> Ieration Route: \{"RouteRule":{ "from":"countries", "to":"restcountries.eu/rest/v2/"}}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)