Hi Sounds like you need this EIP instead http://camel.apache.org/composed-message-processor.html
And look for the splitter only example how to do that. On Fri, Feb 21, 2014 at 3:54 PM, PankajGupte <[email protected]> wrote: > Can you please advice on below issue I am facing while using camel for > implementing splitter/ aggregator pattern > > I am using producer template to invoke the route like below > > response = template.requestBody("direct:start5",req,String.class); > > My route is like below > > from("direct:start5").setHeader(Exchange.HTTP_METHOD,constant("GET")).setHeader(Exchange.HTTP_QUERY, > body()).split(body(String.class).tokenize("}")).process(new > SplitProcessor()).to(property).aggregate(SpliterStratergy).header(Exchange.HTTP_METHOD).ignoreInvalidCorrelationKeys().completionSize(4).to(agre); > > As per this route Camel splits my request and the call goes to > SpliterStratergy for each splited part. > In this class I am aggregating the response for all splits > > The final out put can be sent on the next point in the route. > > How ever I am not getting the final response back on the response variable. > > For any other EP I am getting data back in the response variable > > Can you explain how to solve this issue. > I can solve this issue by putting the final output on mock end point and > then using consumer to read data However expectation in real life production > enviroment is to get data back from producer template's request method > > Regards > Pankaj > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Not-getting-response-back-when-splitter-and-agreegator-pattern-implemented-in-camel-tp5747763.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen Make your Camel applications look hawt, try: http://hawt.io
