camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Trenaman" <TRENA...@progress.com>
Subject Re: camel-jetty and loadbalancing
Date Fri, 11 Dec 2009 14:25:17 GMT
You should use camel-http instead of -jetty  for your http producer endpoints! I.e. Start your
uri for the producers with http:// rather than jetty:http://  

HTH,
Ade

----- Original Message -----
From: Charles Moulliard <cmoulliard@gmail.com>
To: users@camel.apache.org <users@camel.apache.org>
Sent: Fri Dec 11 09:13:35 2009
Subject: camel-jetty and loadbalancing

I try to use loadbalancing with camel-jetty but I'm not quite sure that what
I do is correct.

Is this configuration correct ?

        <camel:route>
            <camel:from
uri="jetty:http://localhost:8080<http://localhost:8080?matchOnUriPrefix=true>
"/>
            <camel:loadBalance>
                <camel:roundRobin/>
                <camel:to
uri="jetty:http://localhost:8282<http://localhost:8282?matchOnUriPrefix=true>
"/>
                <camel:to
uri="jetty:http://localhost:8383<http://localhost:8383?matchOnUriPrefix=true>
"/>
                <camel:to
uri="jetty:http://localhost:8484<http://localhost:8484?matchOnUriPrefix=true>
"/>
            </camel:loadBalance>
        </camel:route>

        <camel:route>
            <camel:from uri="jetty:
http://localhost:8282?matchOnUriPrefix=true"/>
            <camel:to uri="cxfbean:reportIncidentServiceBean"/>
        </camel:route>

Regards,

Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

*****************************
blog : http://cmoulliard.blogspot.com
twitter : http://twitter.com/cmoulliard
Linkedlin : http://www.linkedin.com/in/charlesmoulliard

Apache Camel Group :
http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message