You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Otto Frost (JIRA)" <ji...@apache.org> on 2009/02/08 16:00:59 UTC

[jira] Created: (SYNAPSE-502) improve the vfs transport to use temporary file

improve the vfs transport to use temporary file
-----------------------------------------------

                 Key: SYNAPSE-502
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-502
             Project: Synapse
          Issue Type: Improvement
          Components: Transports
         Environment: All
            Reporter: Otto Frost


Enhance the vfs transport to use a temporary file at upload.
The reason is to prevent the receiving application to start reading the uploaded-file (put) before it is completely written.
Of course the temp file has to be on the same physical filesystem.
This feature should work for ftp/sftp/local file/...


It should be similar in funcitonality as what SAP XI has at the ftp/file adapter.
See http://help.sap.com/saphelp_nw04/helpdata/en/0b/9a50465ccf84479e39a6d50c90fb3f/content.htm
See the receiver file adapter (the system xi communicates with receives data).
See the option TargetTempFileName

If there is already this functionality, it would be good idea to include how to solve the problem in the examples. Of course the best solution is to use MOM, but sometimes that isn't an option.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Commented: (SYNAPSE-502) improve the vfs transport to use temporary file

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12671767#action_12671767 ] 

Andreas Veithen commented on SYNAPSE-502:
-----------------------------------------

This is indeed a flaw in the VFS transport that needs to be addressed if we want to it to be usable in an enterprise environment.

> improve the vfs transport to use temporary file
> -----------------------------------------------
>
>                 Key: SYNAPSE-502
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-502
>             Project: Synapse
>          Issue Type: Improvement
>          Components: Transports
>         Environment: All
>            Reporter: Otto Frost
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Enhance the vfs transport to use a temporary file at upload.
> The reason is to prevent the receiving application to start reading the uploaded-file (put) before it is completely written.
> Of course the temp file has to be on the same physical filesystem.
> This feature should work for ftp/sftp/local file/...
> It should be similar in funcitonality as what SAP XI has at the ftp/file adapter.
> See http://help.sap.com/saphelp_nw04/helpdata/en/0b/9a50465ccf84479e39a6d50c90fb3f/content.htm
> See the receiver file adapter (the system xi communicates with receives data).
> See the option TargetTempFileName
> If there is already this functionality, it would be good idea to include how to solve the problem in the examples. Of course the best solution is to use MOM, but sometimes that isn't an option.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Updated: (SYNAPSE-502) improve the vfs transport to use temporary file

Posted by "Rajika Kumarasiri (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rajika Kumarasiri updated SYNAPSE-502:
--------------------------------------

    Attachment: SYNAPSE-502.patch

Here is a patch to fix the problem. 
A user can specify the property "transport.vfs.UseTempFile" if he/she wants to use a temporary file(which also reside in the remote file system where the original file resides) when uploading the content to a remote location. Once the file is uploaded to temporary file it'll move to original file name. 
<property name="transport.vfs.UseTempFile" value="true" scope="transport"/>. 

The creation of temp file and moving into original file happens in the following manner.

// create a temp file
// lock the temp file
// transfer the content to temp file
// unlock the temp file
// move the temp file to original file

Note that I used the commons-vfs trunk patch-https://issues.apache.org/jira/browse/SYNAPSE-626. This patch doesn't contains the patch SYNAPSE-626.

Rajika

> improve the vfs transport to use temporary file
> -----------------------------------------------
>
>                 Key: SYNAPSE-502
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-502
>             Project: Synapse
>          Issue Type: Improvement
>          Components: Transports
>         Environment: All
>            Reporter: Otto Frost
>         Attachments: SYNAPSE-502.patch
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Enhance the vfs transport to use a temporary file at upload.
> The reason is to prevent the receiving application to start reading the uploaded-file (put) before it is completely written.
> Of course the temp file has to be on the same physical filesystem.
> This feature should work for ftp/sftp/local file/...
> It should be similar in funcitonality as what SAP XI has at the ftp/file adapter.
> See http://help.sap.com/saphelp_nw04/helpdata/en/0b/9a50465ccf84479e39a6d50c90fb3f/content.htm
> See the receiver file adapter (the system xi communicates with receives data).
> See the option TargetTempFileName
> If there is already this functionality, it would be good idea to include how to solve the problem in the examples. Of course the best solution is to use MOM, but sometimes that isn't an option.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org