Hi, One possible way would be to plugin a custom PollingConsumerPollStrategy [1] of yours (see the pollStrategy option of the file component [2]) where in your begin method you set the counter to 0 and by your commit method you consider the value of the passed polledMessages parameter.
[1] http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/spi/PollingConsumerPollStrategy.html [2] http://camel.apache.org/file2 Babak -- View this message in context: http://camel.465427.n5.nabble.com/File-componet-start-processing-files-tp5165723p5165836.html Sent from the Camel - Users mailing list archive at Nabble.com.