camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: File generation and FTP
Date Fri, 16 Nov 2012 16:39:17 GMT
For #2 you need to turn noop=true on the file endpoint.

On Thu, Nov 15, 2012 at 8:59 PM, anu_cameluser <anutechuser@yahoo.com> wrote:
> Hi Camel users,
>
> An application generates a file which then has to ftp'ed to remote server.
> The application needs to preserve a copy of the generated file as well. I
> have tried creating a route like below and creating the file by sending a
> message to the file end point:
>
> from("file://directoryName").to("ftp://userName@remote-server@domain.com:21//remoteFolderPath?
> password=****")
>
> producertemplate.sendBodyAndHeader(fileEndPoint, "helloWorld text in file",
> "CamelFileName", "helloworld.txt");
>
> This causes two issues:
> 1. The file being FTP'ed has the name helloworld.txt, but it is empty. Any
> ideas?
> 2. Locally, camel creates as sub-folder (directoryName/.camel) and puts the
> helloworld.txt there. This file is not empty. Why is the .camel directory
> created and how do turn this off?
>
> Any suggestions will be welcome. Also, looking for pointers on how camel
> will behave if the ftp server is unavailable.
>
> Thanks
> Anu
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/File-generation-and-FTP-tp5722795.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message