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>
*********


-- 
View this message in context: 
http://www.nabble.com/How-to-route-a-message-based-on-a-criteria---tp18506590s22882p18506590.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to