Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 48233 invoked from network); 12 Feb 2009 18:01:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2009 18:01:23 -0000 Received: (qmail 94901 invoked by uid 500); 12 Feb 2009 18:01:22 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 94881 invoked by uid 500); 12 Feb 2009 18:01:22 -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 94870 invoked by uid 500); 12 Feb 2009 18:01:22 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 94867 invoked by uid 99); 12 Feb 2009 18:01:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2009 10:01:22 -0800 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; Thu, 12 Feb 2009 18:01:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5821A234C48C for ; Thu, 12 Feb 2009 10:00:59 -0800 (PST) Message-ID: <386184086.1234461659359.JavaMail.jira@brutus> Date: Thu, 12 Feb 2009 10:00:59 -0800 (PST) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-1295) FTPConsumer to support storing remote payload in local file directory In-Reply-To: <2014088607.1232878259364.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-1295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=49407#action_49407 ] Claus Ibsen commented on CAMEL-1295: ------------------------------------ Got the basic done now. So you can do: {code} from("ftp:somewhere?localDirectory=/tmp").to"("file://inbox"); {code} And Camel will pass a java.io.File as the body, so when the file producer is writing the file in the inbox directory it will use the file handle given from the ftp consumer. This allows us to: - avoid reading the ftp content into memory - storing directly to local files - and pass file handles to file producer so it can do fast file channel stuff for writing files. > FTPConsumer to support storing remote payload in local file directory > --------------------------------------------------------------------- > > Key: CAMEL-1295 > URL: https://issues.apache.org/activemq/browse/CAMEL-1295 > Project: Apache Camel > Issue Type: New Feature > Components: camel-ftp > Reporter: Claus Ibsen > Assignee: Claus Ibsen > Fix For: Future > > > Use of local work directory to store remote content directly in a file. So you avoid reading 2gb in memory if you consume very big files. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.