Create your own LW component by subclassing
org.apache.servicemix.components.vfs.FileWriter and add the renaming
functionality.

Even better: Create a JIRA issue for
org.apache.servicemix.components.vfs.FileWriter and provide a patch (Adding
tmp prefix for outputname created by FileMarshaller and rename it after
marshaler.writeMessage).

Greetings
Juergen


avi-s wrote:
> 
> Is there an easy way to send a file using FTP and than rename or move it
> to another location (on the FTP server using FTP command) without
> customising the provided FTP transport component?
>  
> This usage is a common techniques applied when FTP is used for file based
> message exchange between two applications.
> 
> The sending application send the file with a temporary name or place it in
> a temporary folder and when the 'SEND' operation is completed it rename or
> move the file (using FTP command) to the common area where the receiving
> application is expecting the file. This is done to avoid the receiving
> application attempting to read the file prematurely (before it was
> completely transferred).
> 
> Thanks
> 

-- 
View this message in context: 
http://www.nabble.com/Mule-Evaluation-and-FTP-File-Exchange-tf3412890s12049.html#a9510093
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to