Re: Using a custom based load balancer.

2012-09-26 Thread Claus Ibsen
i get an error body is empty and [Fatal Error] :1:1: Premature end of > file > > I don't understand what wrong i am doing here. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Using-a-custom-based-load-balancer-tp5719841p5720013.html &g

Re: Using a custom based load balancer.

2012-09-26 Thread balkishore
ors().get(0)); } But i get an error body is empty and [Fatal Error] :1:1: Premature end of file I don't understand what wrong i am doing here. -- View this message in context: http://camel.465427.n5.nabble.com/Using-a-custom-based-load-balancer-tp5719841p5720013.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Using a custom based load balancer.

2012-09-26 Thread Claus Ibsen
n i test the same xpath expression using Xapth java API, > i get the serviceGroup id. > If is unique in the XML, then you can just do a simple String search and grab the text between the start and end tags Though its a bit of a hack. > Any help would be really useful. >

Re: Using a custom based load balancer.

2012-09-25 Thread balkishore
me an error saying invalid xpath expression. But when i test the same xpath expression using Xapth java API, i get the serviceGroup id. Any help would be really useful. -- View this message in context: http://camel.465427.n5.nabble.com/Using-a-custom-based-load-balancer-tp5719841p571.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Using a custom based load balancer.

2012-09-25 Thread Claus Ibsen
map.put(id , getProcessors()); > } > > > target.process(exchange); > } > > Is the logic correct? Because I am still not able to figure out things and > joining the dots. I would really appreciate if you could

Re: Using a custom based load balancer.

2012-09-25 Thread balkishore
e dots. I would really appreciate if you could tell me if the logic is correct. -- View this message in context: http://camel.465427.n5.nabble.com/Using-a-custom-based-load-balancer-tp5719841p5719943.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Using a custom based load balancer.

2012-09-25 Thread Claus Ibsen
XPath is an API there is in the JDK. So you can google for xpath examples and use plain API from the JDK if you want. > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Using-a-custom-based-load-balancer-tp5719841p5719930.html > Sent from the Camel

Re: Using a custom based load balancer.

2012-09-25 Thread balkishore
Hi claus, How would i perform xpath evaluation in exchange.getOut().getHeader("ServiceGroupID", String.class); I did not find any example where xpath is evaluated in the getheader() function. -- View this message in context: http://camel.465427.n5.nabble.com/Using-a-custom-

Re: Using a custom based load balancer.

2012-09-25 Thread Claus Ibsen
cause > getHeader() function does not accept String as input argument. > > I am still struck here. > > Please, i would appreciate any help. > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Using-a-custom-based-load-balancer-tp5719841

Re: Using a custom based load balancer.

2012-09-25 Thread balkishore
GroupId/text()), 10) And it is not performing the xpath evaluation. And I am not able to initialize the term expression as string because getHeader() function does not accept String as input argument. I am still struck here. Please, i would appreciate any help. -- View this message in contex

Re: Using a custom based load balancer.

2012-09-24 Thread Claus Ibsen
} > } > > And my main is something like this : > > from(uri).loadBalance(new MyCustomLoadBalancer()).to(BE1,BE2); > > where URI, BE1 and BE2 are the URLs. > > Am I doing something wrong in my custom load balancer method? > I would be glad if you could help

Re: Using a custom based load balancer.

2012-09-24 Thread balkishore
ncer()).to(BE1,BE2); where URI, BE1 and BE2 are the URLs. Am I doing something wrong in my custom load balancer method? I would be glad if you could help me or point out the mistake, I have done. I have been struggling on this project for a while now. -- View this message in context: htt

Re: Using a custom based load balancer.

2012-09-24 Thread Claus Ibsen
s() > > } > } > > Now the problem is how can I call the hashmap object in my choose procesor > method? I cannot extend my choose processor method. > > I am struck in the if part of the choose processor. > > Could you please assist me in this? > > > > -- &g

Re: Using a custom based load balancer.

2012-09-24 Thread balkishore
struck in the if part of the choose processor. Could you please assist me in this? -- View this message in context: http://camel.465427.n5.nabble.com/Using-a-custom-based-load-balancer-tp5719841p5719857.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Using a custom based load balancer.

2012-09-24 Thread Claus Ibsen
the first request? > You cannot. You would always need to try to get the session id. If its null then its initial call. If its != null then its 2nd+ call. > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Using-a-custom-based-load-balancer-tp571984

Re: Using a custom based load balancer.

2012-09-24 Thread balkishore
.nabble.com/Using-a-custom-based-load-balancer-tp5719841p5719848.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Using a custom based load balancer.

2012-09-24 Thread Claus Ibsen
d, how would my process > method look like? > > I would really appreciate if anyone could give me an outline "On how to join > the dots in camel". > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Using-a-custom-based-load-balanc

Using a custom based load balancer.

2012-09-24 Thread balkishore
ook like? I would really appreciate if anyone could give me an outline "On how to join the dots in camel". -- View this message in context: http://camel.465427.n5.nabble.com/Using-a-custom-based-load-balancer-tp5719841.html Sent from the Camel - Users mailing list archive at Nabble.com.