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