Downloading Files using Camel and SFTP

In this example, we will download files from a Server using SFTP and store them in a local directory. Create a Maven Project Create a Maven Project groupId: com.skills421.examples.camelartifactId:  CamelBasicsversion: 0.0.1-SNAPSHOT Update Pom.xml pom.xml Edit FTPCopier.java Edit ftpCopier.java to add the method sftpDownload as follows: FTPCopier.java Edit FTPCopierTest.java Edit FTPCopierTest.java to @Ignore the ftp test and add... Continue Reading →

Downloading Files using Camel and FTP

In this example, we will download files from a Server using FTP and store them in a local directory Create a Maven Project Create a Maven Project groupId: com.skills421.examples.camelartifactId:  CamelBasicsversion: 0.0.1-SNAPSHOT Update Pom.xml pom.xml Edit FTPCopier.java Create the FTPCopier.java code as follows: FTPCopierTest.java Note that you will need to define your own FTP Server to use to... Continue Reading →

Copying Files using Camel

This post continues on from Copying Files Using Java Edit FileCopier.java Edit the file FileCopier.java to add a new copyFile method, giving the following code FileCopier.java Edit FileCopierTest.java Edit the FileCopierTest.java code to add a second Test Case as follows: FileCopierTest.java Remember to change your inputPath and outputPath to match your own filesystem. Run the... Continue Reading →

Up ↑

%d bloggers like this: