3 Replies Latest reply on Jul 27, 2010 8:57 AM by Claus Ibsen

    Aggregate and split with reply to original sender

    Scott Christopher Newbie

      I would like to know whether it is possible to achieve something similar to the following:

       

      from("seda:example")

      // aggregate operations that can be sent as a batch

      .aggregate()

      // send batched request to remote service

      .to("cxf:bean:remoteService")

      // split batched results from remote service

      .split()

      // ... somehow return results to the original sender

       

      The intent is to leverage sending requests as batches to a SOAP service that suffers from high latency.

       

      Can the correlation-id of the original request be set on the exchange after splitting the results, so that the reply is returned to the sender? Or is this receive->aggregate->process->split->reply pattern not possible?

       

      Regards,

      Scott Christopher