Re: ConsumerTemplate for large number of files

2013-05-24 Thread spilled_beverage
I don't actually just move the files from one folder to another - they are consumed from file (via ConsumerTemplate) but then go to a direct route and a whole host of other stuff happens - I just simplified the example in order to be as clear as possible in my post. My consumer either reads from a

Re: ConsumerTemplate for large number of files

2013-05-24 Thread spilled_beverage
Hi Claus, Thanks for the reply (and congratulations on the Camel in Action book - very readable and a great intro to Camel). Setting maxMessagesPerPoll=1 works but slows down the run hugely (from 10 seconds to around 10 minutes in my quick test). Setting it to a higher value (e.g. 500) still work

ConsumerTemplate for large number of files

2013-05-23 Thread spilled_beverage
I'm consuming from a directory which can contain a large number of files (currently trying with 1500). When using a basic route all is fine and all files are moved from input to output; However, I need to use the ConsumerTemplate with something similar to; The problem is that running with the