You need to use a fileFilter to dynamic chose which files to consume.
There is more details on that file component doc page

On Tue, Apr 18, 2017 at 6:11 AM, KhajaNawas14 <khaja.na...@me.com> wrote:
> Hi All,
>
> currently my query is like any file that comes to this folder will be
> processed to next stage. However I would like to add the file name also my
> camel route so that i can re-use the same folder for multiple files.
>
> sample folder cd-erpdata-csv
> sample file name us-ddmmyy.csv and uk-ddmmyy.csv
>
> <camel:from
> uri="file:messaging/cd-erpdata-csv?preMove=inprogress&amp;move=.done"/>
>
>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-Route-File-name-tp5797776.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to