I found a fix. However, I still don't completely understand it completely. 

My assumption was that when the splitResponse() method is invoked by Camel
it is passed a GooglePlaceResponseObject. However, looks like that's not the
case. Because when I changed the input to splitResponse() to an Exchange
object and then get the GooglePlaceResponseObject from the "in body" it
works. I even tried annotating the input to splitResponse(@Body
GooglePlaceResponseobject) but it still didn't work. 


        public List<GooglePlaceVO> splitResponse(Exchange exchange) {
                
                GooglePlaceResponseObject gpResponse =
(GooglePlaceResponseObject)exchange.getIn().getBody();

.....
.....
.....

--
View this message in context: 
http://camel.465427.n5.nabble.com/Any-idea-why-this-simple-splitter-is-not-working-in-2-10-SNAPSHOT-tp5678336p5681688.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to