Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 2305 invoked from network); 6 Jun 2009 12:08:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Jun 2009 12:08:03 -0000 Received: (qmail 20446 invoked by uid 500); 6 Jun 2009 12:08:14 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 20379 invoked by uid 500); 6 Jun 2009 12:08:14 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 20369 invoked by uid 500); 6 Jun 2009 12:08:14 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 20366 invoked by uid 99); 6 Jun 2009 12:08:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Jun 2009 12:08:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Jun 2009 12:08:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A3EB5234C045 for ; Sat, 6 Jun 2009 05:07:50 -0700 (PDT) Message-ID: <885464194.1244290070669.JavaMail.jira@brutus> Date: Sat, 6 Jun 2009 05:07:50 -0700 (PDT) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-1670) thread() and File Components In-Reply-To: <1447642817.1244156270584.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-1670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52096#action_52096 ] 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: https://issues.apache.org/activemq/browse/CAMEL-1670 > 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.