camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] Commented: (CAMEL-1670) thread() and File Components
Date Sat, 06 Jun 2009 12:07:50 GMT


Claus Ibsen commented on CAMEL-1670:

How do you create the files to be used during testing?

I just remembered that you cannot on some platforms in the same JVM write a file and obtains
exclusive locks on the file.
So basically what is needed is to test by having some other system produce the files for unit
testing. Eg create another JVM that drops in continuously new files.

> thread() and File Components
> ----------------------------
>                 Key: CAMEL-1670
>                 URL:
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.0-M1
>         Environment: Microsoft Windows XP
>            Reporter: Joe Gottman
>            Assignee: Claus Ibsen
> I just experimented with adding calls to thread(10) to my route to make it multithreaded.
 This definitely speeds up by route, but it keeps throwing java.nio.channels.OverlappingFileLockException
 errors and leaving lock files behind it.  The start of my route looks like
> from("file:\\startDirectory?move=endDirectory")
> .threads(10)
> .bean("myBean", "myMethod")
> Afterwards, my route ran successfully but an OverlappingFileLockException was thrown
for every file that was read and all the lock files were left in my source directory.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message