Hi

The move option is only for the *consumer* as its listed in the consumer table
http://camel.apache.org/file2

In the producer you can use the tempFilename to write using a
temporary file, and then afterwards have the file moved/renamed to the
target file name.


On Wed, Jun 6, 2012 at 9:41 PM, paramjyotsingh <paramjyotsi...@gmail.com> wrote:
> I have two server A and B. I am trying to sftp a file from A to B.
>
> A is source and B is destination.
>
> When I sftp to B location is /a/test1, after my sftp is done I want to move
> my file from /a/test1 to /a/test2
>
> i tried following configuration
>
> <route>
>    <from uri="file:///test/local/" />
>    <to
> uri=&quot;sftp://&lt;username>@<host>:<port>/<path-on-remote-server>/?move=<path-to-move-to-after-sftp-complete>"
> />
> </route>
>
> Can someone please help me understand why "move" parameter is not working.
> Am I using it incorrectly, Is there a way I can achieve what I am trying to
> do?
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/sftp-to-remote-server-and-move-ftpied-file-to-other-location-on-remote-server-tp5714088.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to