Hello All,

Im new to Apache Camel. Im planning to camel-ftp to do the SFTP of a file
from one machine to the local machine. Following is the program, i've
created.


package com.apache.test;

import org.apache.camel.builder.RouteBuilder;

public class SFTPTransfer extends RouteBuilder {

        @Override
        public void configure() throws Exception {
        System.out.println("Transfer started");
        from("sftp://prakash:prakash@172.16.1.26/Desktop/Reports.xls";).
                to("file://home/prakash/test.xls");
        System.out.println("File transerred");
        }
        
    public static void main(String[] args) throws Exception {
        SFTPTransfer builder = new SFTPTransfer();
        builder.configure();
    }
}

When running the above, im getting following information in the console.

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
details.
Transfer started
File transerred

As it is able to get execute both the statements above and below the stfp, i
hope, the transfer working fine. But in the target i didn't see the new
file. The file was not copied to that location.

I have following JARs in the classpath

camel-core-2.9.2.jar
slf4j-api-1.6.2.jar

Please let me know your views.

Thanks,
Prakash.A

--
View this message in context: 
http://camel.465427.n5.nabble.com/SFTP-Example-with-ant-tp5713489.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to