[
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: [email protected]
For additional commands, e-mail: [email protected]