Hi,

The route should be :

  <route>
    <from uri="jetty:http://localhost:9090/GreeterContext/GreeterPort"/>
    <loadBalance>
       <roundRobin/>
       <to uri="seda:b"/>      
       <to uri="seda:c"/>      
       <to uri="seda:d"/>       
    </loadBalance>    
  </route>

buchnerm wrote:
> 
> 
> Remark : Have you test the from().to() without the loadbalancing in order
> to verify that you receive something from jetty endpoint (see also :
> http://cwiki.apache.org/CAMEL/jetty.html) ?
> 
> For more info on how to use the loadbalancing -->
> http://cwiki.apache.org/CAMEL/load-balancer.html
> 
> Regards,
> 
> Charles Moulliard
> Hi I am trying to implement a small load balancer based on the session id 
> 
> so if sessionid % 3 = 0 --> send it to seda0
> if sessionid % 3 = 1 --> send it to seda1
> if sessionid % 3 = 2 --> send it to seda2
> 
> is that possible?
> 
> how to cnfigure this in spring xml??
> 
> something like this but???
> *********
> <route>
>             <from
> uri="jetty:http://localhost:9090/GreeterContext/GreeterPort"/>
>             <loadBalance ref="roundRobinRef">
>               <to uri="direct:EndpointA"/>
>               <to uri="direct:EndpointB"/>
>             </loadBalance>
>         </route>
> *********
> 
> 
> 


-----
Enterprise Architect

Xpectis
12, route d'Esch
L-1470 Luxembourg

Phone +352 25 10 70 470
Mobile +352 621 45 36 22

e-mail : [EMAIL PROTECTED]
web site : www.xpectis.com 
-- 
View this message in context: 
http://www.nabble.com/How-to-route-a-message-based-on-a-criteria---tp18506590s22882p18506843.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to