Re: Camel - Making parallel GET requests and aggregating the results via Dynamic Routes using Java DSL

2016-10-18 Thread Debraj Manna
Thanks Avnish. On Tue, Oct 18, 2016 at 8:38 PM, Avnish Pundir wrote: > You can use JsonPathExpression in your split body and allow parallel > execution using executorServiceRef, following is a sample skeleton - > > from("jetty:http://localhost:/hello;).split(new

Re: Camel - Making parallel GET requests and aggregating the results via Dynamic Routes using Java DSL

2016-10-18 Thread Avnish Pundir
You can use JsonPathExpression in your split body and allow parallel execution using executorServiceRef, following is a sample skeleton - from("jetty:http://localhost:/hello;).split(new JsonPathExpression("$.data[*]")).executorServiceRef(MY_EXECUTOR_REF).to(...) This will run your

Camel - Making parallel GET requests and aggregating the results via Dynamic Routes using Java DSL

2016-10-18 Thread Debraj Manna
I am receiving a request on a Jetty Http Endpoint. The request body contains some urls in the request body. I have to make a GET request to those urls. Then aggregate the results from each of the GET request and return it to the caller. Request Body:- { "data" : [ {"name" : "Hello",