Thanks Henryk and Maruan!

It really helped.

Best Regards,
Ivan

-----Original Message-----
From: Henryk Konsek [mailto:hekon...@gmail.com] 
Sent: Wednesday, February 27, 2013 10:27 PM
To: users@camel.apache.org
Subject: [Spam]: Re: Is there batch functionality in Camel?

Hi Ivan,

> I wonder if the Spring Batch Component (
> http://camel.apache.org/springbatch.html) is proper to use in this case?

You can use CamelItemReader to pass messages into Spring Batch.
However I would say that your case is too simple to use Spring Batch for this 
purpose.

I would advise to use aggregator instead.

from("seda:queue").
  aggregate().groupExchanges().
  completionSize(1000).completionTimeout(10000).
  to("seda:aggregatedResults");

Best regards.

--
Henryk Konsek
http://henryk-konsek.blogspot.com

Reply via email to