camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "yury.dorofeev" <u.dorof...@gmail.com>
Subject How to rename file on FTP, example
Date Fri, 26 Feb 2016 08:20:17 GMT
Hi,
I'm looking for example of how to rename the file on FTP. My scenario: 

1. marshal message to the HUGE XML file
2. upload file to FTP with temp name (myFile.tmp)
3. when the upload is complete rename myFile.tmp to myFile.xml

There is good docs on http://camel.apache.org/file2.html but it does not
help

I use spring xml configuration: 
<camel:from uri="seda:myService"></camel:from>
     <camel:convertBodyTo type="myObjectOutput"/>
          <camel:marshal>
                <camel:jaxb
                        contextPath="myPath"/>
          </camel:marshal>
          <camel:to
uri="ftp://username:password@127.0.0.1:21/folder?tempFileName=myFile.tmp&amp;move=myFile.xml"></camel:to>
</camel:route>
    </camel:camelContext>

Please help! 
It would be nice to have a real example in documentation
Thank you! 



--
View this message in context: http://camel.465427.n5.nabble.com/How-to-rename-file-on-FTP-example-tp5778311.html
Sent from the Camel Development mailing list archive at Nabble.com.

Mime
View raw message