On Sun, Jul 28, 2013 at 8:18 PM, skumar <sku...@stonewain.com> wrote: > Thanks,Claus.It is working fine.But I have still one question.Can I use it > for reading the pattern based file and moving the file to a archive > directory.Something like this: > > <from uri="file:{{inbound_home}}/pgsl?<b>include=.*.*xls*& > move={{data_home}}/${file:onlyname.noext}_${date:now:yyyyMMdd}.XLS& > moveFailed={{data_home}}/errorfile&doneFileName=LOADGENERICSUPPLY" /> >
No you would need to move the file yourself, if you use the <transform><simple> code I showed. Though you can use onException to handle the failed situation. BTW there is a JIRA ticket about allowing dynamic <enrich> and <pollEnrich> so in a future Camel release this would be easier. > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/combining-the-existing-content-with-a-file-having-dynamic-uri-then-moving-the-file-tp5736365p5736374.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen