You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by nikhilesh <ni...@gmail.com> on 2016/04/24 08:22:29 UTC

Using camel 2.16.0 Cannot read any files from SFTP location, the same code works for 2.15.3

Hi,


I have a below camel route which is used to poll files from the sftp
location, which does not work when I use camel 2.16.0 version and workks
fine with 2.15.3 version without any issues. 

note:I did not use the absolute path when I used 2.16.0 version 



@Override
	public void configure() throws Exception {
		// configure properties component
		PropertiesComponent pc = getContext().getComponent("properties",
PropertiesComponent.class);
		pc.setLocation("classpath:ftp.properties");

		// lets shutdown faster in case of in-flight messages stack up
		getContext().getShutdownStrategy().setTimeout(10);

	
from("{{ftp.client}}").to("file:C:\\Users\\myself\\Downloads\\sft").log("Downloaded
file ${file:name} complete.");

		// use system out so it stand out
	
System.out.println("*********************************************************************************");
		System.out.println("Camel will route files from the FTP server: " +
getContext().resolvePropertyPlaceholders("{{ftp.server}}")
				+ " to the target/download directory.");
		System.out.println("You can configure the location of the ftp server in
the src/main/resources/ftp.properties file.");
		System.out.println("Use ctrl + c to stop this application.");
	
System.out.println("*********************************************************************************");
	}



--
View this message in context: http://camel.465427.n5.nabble.com/Using-camel-2-16-0-Cannot-read-any-files-from-SFTP-location-the-same-code-works-for-2-15-3-tp5781615.html
Sent from the Camel - Users mailing list archive at Nabble.com.