You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2009/02/17 12:54:59 UTC

[jira] Created: (CAMEL-1347) File producer should use local file from local work directory if exists

File producer should use local file from local work directory if exists 
------------------------------------------------------------------------

                 Key: CAMEL-1347
                 URL: https://issues.apache.org/activemq/browse/CAMEL-1347
             Project: Apache Camel
          Issue Type: Improvement
          Components: camel-core, camel-ftp
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
            Priority: Minor
             Fix For: 2.0.0


Just an optimization

When you consume from eg a FTP server and use the local work directory option to stream the remote file directly into a local work file, and afterwards route it to a file producer to store the file (again) the file producer should optimize and just rename the local work file if possible.

Then:
{code}
from("ftp://me@someserver:21/inbox?password=secret&localWorkDirectory=/tmp").to("file:///myapp/inbox");
{code}

Will be optimized to rename the file from the /tmp folder to the /myapp/inbox folder instead of doing a file copy.

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


[jira] Resolved: (CAMEL-1347) File producer should use local file from local work directory if exists

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-1347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-1347.
--------------------------------

    Resolution: Fixed

> File producer should use local file from local work directory if exists 
> ------------------------------------------------------------------------
>
>                 Key: CAMEL-1347
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1347
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core, camel-ftp
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> Just an optimization
> When you consume from eg a FTP server and use the local work directory option to stream the remote file directly into a local work file, and afterwards route it to a file producer to store the file (again) the file producer should optimize and just rename the local work file if possible.
> Then:
> {code}
> from("ftp://me@someserver:21/inbox?password=secret&localWorkDirectory=/tmp").to("file:///myapp/inbox");
> {code}
> Will be optimized to rename the file from the /tmp folder to the /myapp/inbox folder instead of doing a file copy.

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