camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anu_cameluser <>
Subject File generation and FTP
Date Thu, 15 Nov 2012 19:59:54 GMT
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:


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
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.


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message