camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: FTP component doesn't work, silently
Date Sat, 13 Sep 2014 06:08:46 GMT
Hi

What do you mean?

The route will only process files if there is files on the FTP server
it can download.

Also context.start() is a non blocking method, so you need a way of
keeping the JVM running.
See more details here
http://camel.apache.org/running-camel-standalone-and-have-it-keep-running.html

On Sat, Sep 13, 2014 at 12:11 AM, JoshWo <wo.josh@gmail.com> wrote:
> I am a newbie to camel. I am trying to download files from a ftp server. It
> somehow doesn't work without any message (like nothing happened).
>
> I am using a mac and I am using 2.12.4 camel. Any help on how to output some
> debug messages will be appreciated! currently, if I put random url, the code
> still ran through without any message.
>
>
> public void integration() throws Exception  {
>                 context.addRoutes(new RouteBuilder() {
>
>
>
>                         @Override
>                         public void configure() throws Exception {
>
> from("ftp://my.com/?password=secret&username=josh&streamDownload=true&noop=true").
>                                 to("file://tmp/outbox").log("download");
>                         }
>                 });
>                 context.start();
>         }
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/FTP-component-doesn-t-work-silently-tp5756459.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Mime
View raw message