I got it working, Thanks for your support and help guys!
The code is as follow:
.loadBalance().sticky(env.xpath("substring(string(/soapenv:Envelope/soapenv:Header/wsa:ReplyTo/wsa:ReferenceParameters/axis2:Serv‌
iceGroupId/text()), 10)", String.class))
.to(BE1,BE2);
Where env is my namespace and BE1 and BE2 are backend servers!
--
View this message in context:
http://camel.465427.n5.nabble.com/Performing-Sticky-load-balancing-in-Camel-tp5719170p5719241.html
Sent from the Camel - Users mailing list archive at Nabble.com.