I think from looking at the code that the file content is not read at the time of polling. The content will not actually be read until you examine the body. So if you followed the file consumer with a setBody to change the body to something else, the content will never be read.
On Mon, Aug 19, 2013 at 9:34 AM, deepak_a <[email protected]> wrote: > Hi, > > is it possible to use file component to poll for files in directories but > NOT actually read the file? > <the file size is quite big - so I don't want to read the file> - but I > need > a notification message (with the file name) > > Is there a way to achieve this using File component? or any other component > that will help me achieve this? > > regards > D > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Using-Camel-File-component-to-Poll-a-directory-but-not-read-the-files-tp5737510.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Dale King
