uri - Apache Camel SFTP file download from specific directory -


i used ftp component of camel not download files want.

<camel:endpoint id="ftpnotificationdownload" uri="sftp:/11.1.1.1://app/as?username=aa&amp;password=1111&amp;fastexistscheck=true&amp;localworkdirectory=c:\\asd&amp;download=true&amp;throwexceptiononconnectfailed=true&amp;delay=4000&amp;usefixeddelay=true"/> 

i want files , folders downloaded under local folder did not put filename option.

when give host name 11.1.1.1, works when set directory after host name 11.1.1.1:/app/directory, not work.

i have checked sftp server , up.

there should not colon (:) after host name in uri. , not 1 of 2 slashes. on other hand, missing 1 slash after sftp:.

see apache camels uris syntax.

sftp://[username@]hostname[:port]/directoryname[?options] 

try

sftp://11.1.1.1/app/as?... 

note true uri, not camel.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -