Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 30709 invoked from network); 7 Jun 2009 08:23:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Jun 2009 08:23:01 -0000 Received: (qmail 9305 invoked by uid 500); 7 Jun 2009 08:23:13 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 9241 invoked by uid 500); 7 Jun 2009 08:23:12 -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 9229 invoked by uid 500); 7 Jun 2009 08:23:12 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 9225 invoked by uid 99); 7 Jun 2009 08:23:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Jun 2009 08:23:12 +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; Sun, 07 Jun 2009 08:23:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A866C234C045 for ; Sun, 7 Jun 2009 01:22:50 -0700 (PDT) Message-ID: <1123241665.1244362970688.JavaMail.jira@brutus> Date: Sun, 7 Jun 2009 01:22: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=52100#action_52100 ] Claus Ibsen commented on CAMEL-1670: ------------------------------------ This is a first cut for a fix. It resolves the issue for the markerFile lock (the default one). But we are considering a more generic solution for registering in progress exchanges. For instance there is a ticket about idempotent consumer EIP pattern that could also benefit from this. trunk: 782345. > 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.