Yes that is possible.

Check out this wiki page
http://camel.apache.org/aggregator2

You may want to use the completionFromBatchConsumer=true to let the
aggregator pickup the X number of files from the directory. Then you have
that as a List.

Alternative you can use the aggregator to "merge" the files together to a
single message.

How to use the aggregator is extensively covered in the Camel in Action book
chapter 8. In fact I suggest you peak at some of the sample codes from the
book.

http://code.google.com/p/camelinaction/source/browse/#svn%2Ftrunk%2Fchapter8%2Faggregator%253Fstate%253Dclosed


-----Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/--
View this message in context: 
http://camel.465427.n5.nabble.com/Agraggator-to-merge-files-tp4358984p4360747.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to