Hi What OS and Camel version do you use?
And what do you mean by not working, can you be more specific? Is the file not moved, not picked up or what else? And what do you do in the process file? If on windows then take care about closing all resources otherwise the file can be locked and cannot be moved. On Mon, Apr 13, 2015 at 2:53 PM, niteshjain <niteshjain...@gmail.com> wrote: > Wanted to know , how can i use camel file component to pattern match and get > the file ending with .xml and then later rename it to > filename.xml.processed. > > .... > <camelContext trace="false" xmlns="http://camel.apache.org/schema/spring"> > <route id="loadtoMemory"> > <from > uri="file:{{TEST_HOME}}/myfolder?move=${date:now:yyyyMMdd}/${file:name}" /> > > <process ref="processFile" /> > </route> > ..... > </camelContext> > > tried > *file:{{TEST_HOME}}/myfolder&include=.*.xml?move=${file:name}.processed"* > > but its not working any help would be appreciated > > Regards, > Nitesh > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/How-to-use-Apache-camel-file-component-to-do-a-pattern-match-rename-the-file-tp5765695.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 hawtio: http://hawt.io/ fabric8: http://fabric8.io/