I am trying to use the camel-ftp endpoint (specifically the sftp module) to upload a newly produced CSV file.
The relevant portion of my route is as follows:
...
<marshal>
<csv></csv>
</marshal>
<to uri="file:incoming?tempPrefix=.&fileName=feed.csv" />
<to uri="sftp://username@linuxserver/home/username/file.csv?password=password" />
...
Note: the "file" at
incoming/feed.csv
is created successfully, camel's last few lines of output read:
[DefaultQuartzScheduler-camel_Worker-1] INFO org.apache.camel.component.file.remote.SftpOperations - JSCH -> Authentication succeeded (password).
[DefaultQuartzScheduler-camel_Worker-1] INFO org.apache.camel.component.file.remote.SftpOperations - Connected to sftp://username@linuxserver:22
[DefaultQuartzScheduler-camel_Worker-1] INFO org.apache.camel.component.file.remote.RemoteFileProducer - Connected and logged in to: Endpoint[sftp://username@linuxserver/home/username/file.csv?password=xxxxxx]
But there is no
/home/username/file.csv
on linuxserver.
Note:
I have the same results when I configure my sftp rout as either of the following:
<to uri="sftp://username@linuxserver/home/username/?password=password" />
or
<to uri="sftp://username@linuxserver/home/username?password=password" />
What am I missing?