[ 
https://issues.apache.org/jira/browse/SYNAPSE-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13744047#comment-13744047
 ] 

Hiranya Jayathilaka commented on SYNAPSE-502:
---------------------------------------------

Hi Rajika,

Here's what I think should be the right solution:

* Create temp files with a unique extension (eg: .syn.tmp). This way a 
receiving proxy service can easily filter out the temp files by using a file 
name pattern. You may make this extension configurable, but I'll leave that up 
to you. IMO making it configurable doesn't do much other than making endpoint 
URL's ridiculously long.

* Make the temp file directory configurable. But, default to the currently 
implemented behavior, whenever this setting is not present. That is create temp 
files in the same location as the actual output file unless specified 
otherwise. This parameter should be an absolute or relative file path. Relative 
paths should be resolved with respect to the home directory of the local or 
remote file system.
                
> 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
>            Assignee: Rajika Kumarasiri
>             Fix For: 3.0
>
>         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.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to