camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gregoire Autric <gaut...@redhat.com>
Subject Re: Howto route to a remote FTP work folder then move to the remote FTP final folder
Date Mon, 11 Jan 2016 17:04:27 GMT
Hi, Billy,

Copy that,

please check this option :

http://camel.apache.org/file2.html#File2-Writingfilethroughthetemporarydirectoryrelativetothefinaldestination

see u


On Mon, Jan 11, 2016 at 5:45 PM, bbuzzard <Billy.Buzzard@bnsflogistics.com>
wrote:

> Thanks for the quick response Greg.  Let me see if I can clarify what has
> to
> happen.
>
> The remote FTP site (only one site) has two sub folders: one for staging
> the
> file called "/work" and one for production called "/prod".  The remote FTP
> admin wants me to transfer our local file to the remote "/work" directory
> first.  Once the file has finished writing we are to rename to file to the
> "/prod" folder so that the move is atomic (a single operation that cannot
> be
> interrupted).  When the file appears in the "/prod" folder then the remote
> scripts know that we are no longer writing to the file.  I don't know how
> to
> do that with a Spring routes.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Howto-route-to-a-remote-FTP-work-folder-then-move-to-the-remote-FTP-final-folder-tp5776148p5776152.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Best Regards, Bien à vous,  どうぞお元気で,
____________________________________________________
Greg AUTRIC
- JBoss Middleware Consultant -

twitter : @gautric_io


Red Hat France
web : http://www.redhat.fr
Le Linea, 1 rue du General Leclerc,
92047 Paris La Défense Cedex

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message