And you should really have a look at [1], because your code will *NOT* do what you want to do...
[1] http://camel.apache.org/running-camel-standalone-and-have-it-keep-running.html Best, Christian On Thu, May 24, 2012 at 3:41 PM, Claus Ibsen <[email protected]> wrote: > Hi > > Welcome to the community. > > I suggest you spend some time googling that error report from slf4j. > There is plenty of details what it means, and how to resolve that. > Its not a Camel problem. You need to add more JARs to your classpath. > > > On Thu, May 24, 2012 at 2:52 PM, aprakash <[email protected]> > wrote: > > 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:[email protected]/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. > > > > -- > Claus Ibsen > ----------------- > CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com > FuseSource > Email: [email protected] > Web: http://fusesource.com > Twitter: davsclaus, fusenews > Blog: http://davsclaus.blogspot.com/ > Author of Camel in Action: http://www.manning.com/ibsen/ >
