Hi Claus Here's the trace logs enabled. If I start may application with the file already opened in Excel. The error is generated below.
17 Dec 2008 22:03:01,484 TRACE [Thread: 1 org.apache.camel.component.file.filecompon...@18be298] Fil eConsumer.pollFileOrDirectory(95) | Polling directory c:\temp 17 Dec 2008 22:03:01,484 TRACE [Thread: 1 org.apache.camel.component.file.filecompon...@18be298] Fil eConsumer.pollFile(119) | Polling file: c:\temp\file.txt 17 Dec 2008 22:03:01,484 TRACE [Thread: 1 org.apache.camel.component.file.filecompon...@18be298] Fil eConsumer.acquireExclusiveReadLock(200) | Waiting for exclusive read lock to file: c:\temp\file.txt 17 Dec 2008 22:03:01,484 ERROR [Thread: 1 org.apache.camel.component.file.filecompon...@18be298] FileConsumer.log(188) | c:\temp\file.txt (The process cannot access the file because it is being u sed by another process) java.io.FileNotFoundException: c:\temp\file.txt (The process cannot access the file because it is being used by another process) at java.io.RandomAccessFile.open(Native Method) at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212) at org.apache.camel.component.file.FileConsumer.acquireExclusiveReadLock(FileConsumer.java:2 04) -- View this message in context: http://www.nabble.com/FileComponent-FileNotFoundException-tp21054406s22882p21062702.html Sent from the Camel - Users mailing list archive at Nabble.com.