Hi, We also tried using preMove to avoid multiple instances of Camel picking the same file. But that does not seem to work. When we run with more than one instance, We get following error.
cannot begin processing file: GenericFile[sample1.xml] due to: Cannot rename file: GenericFile[sample1.xml] to: GenericFile[inProcess/sample1.xml]. Caused by: [org.apache.camel.component.file.GenericFileOperationFailedException - Cannot rename file: GenericFile[sample1.xml] to: GenericFile[inProcess/sample1.xml]] The route we have is. from("file://files/inbox/?preMove=inprogress").log("processing ${file:name}").to("file://files/outbox?fileName=${file:name}+${exchangeId}") Are we missing anything obvious in using Camel this way? Thanks. -- View this message in context: http://camel.465427.n5.nabble.com/File-component-language-preMove-only-tp1843111p5728565.html Sent from the Camel - Users mailing list archive at Nabble.com.