All of the examples I have seen show how to retrieve files from a remote ftp server using the ftp component, but I need to send files. In my processor, I create a ProducerTemplate and try to send the file like so:
ProducerTemplate template = exchange.getContext().createProducerTemplate(); String route = protocol + "://" + userid + "@" + host + ":" + port + directory + "?password=" + password; template.sendBodyAndHeader(route, report, "CamelFileName", filename); where protocol, userid, host, etc. are dynamic. I don't get any errors when using the processor but neither is the file uploaded to the host. What am I doing wrong? By the way, I'm using camel 2.8.1. -- View this message in context: http://camel.465427.n5.nabble.com/How-can-I-send-a-file-to-a-remote-ftp-server-using-the-ftp2-component-tp5572863p5572863.html Sent from the Camel - Users mailing list archive at Nabble.com.