Use maxMessagesPerPoll=1 On Tue, Sep 29, 2015 at 9:37 AM, mohammed.rafi <[email protected]> wrote: > Hi, > > With Camel file component --> If you want to consume a single file only, you > can use the fileName option, e.g. by setting fileName=thefilename. > > It polls the directory and compares the fileName with each of the files in > the directory. > But when a matching file is found it wont return immediately instead loops > entire list of files before completing. > > Do we have an option to make it skip and return immediately once a matching > file is found? > > > thanks, > Rafi > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/File-component-wih-fileName-option-skip-return-when-matching-file-found-tp5772085.html > Sent from the Camel - Users mailing list archive at Nabble.com.
-- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2nd edition: https://www.manning.com/books/camel-in-action-second-edition
