Finally, I got this working. I had my folders in the same location where my
java source files were located and I gave it a relative path. But now I
moved them to a seperate folder and gave an absolute path which seemed to
work.

from("file://C:/folders/inbox").to("file://C:/folders/outbox");

Regards,
Jothi

On Fri, Aug 24, 2012 at 10:33 AM, Joe San <codeintheo...@gmail.com> wrote:

> Thanks Claus.
>
> I have the following lines being shown in the console.
>
> [                          main] DefaultCamelContext            INFO
> Route: route1 started and consuming from: Endpoint[file://.?fileName=my.xml]
> [                          main] DefaultCamelContext            INFO
> Total 1 routes, of which 1 is started.
> [                          main] DefaultCamelContext            INFO
> Apache Camel 2.10.0 (CamelContext: camel-1) started in 0.641 seconds
> [(camel-1) thread #1 - file://.] FileConsumer                   DEBUG Took
> 0.015 seconds to poll: .
> [(camel-1) thread #1 - file://.] FileConsumer                   DEBUG Took
> 0.000 seconds to poll: .
> [(camel-1) thread #1 - file://.] FileConsumer                   DEBUG Took
> 0.016 seconds to poll: .
> [(camel-1) thread #1 - file://.] FileConsumer                   DEBUG Took
> 0.000 seconds to poll: .
> [(camel-1) thread #1 - file://.] FileConsumer                   DEBUG Took
> 0.000 seconds to poll: .
> [(camel-1) thread #1 - file://.] FileConsumer                   DEBUG Took
> 0.000 seconds to poll: .
> [(camel-1) thread #1 - file://.] FileConsumer                   DEBUG Took
> 0.000 seconds to poll: .
> [(camel-1) thread #1 - file://.] FileConsumer                   DEBUG Took
> 0.015 seconds to poll: .
> [(camel-1) thread #1 - file://.] FileConsumer                   DEBUG Took
> 0.000 seconds to poll: .
> [(camel-1) thread #1 - file://.] FileConsumer                   DEBUG Took
> 0.000 seconds to poll: .
> [(camel-1) thread #1 - file://.] FileConsumer                   DEBUG Took
> 0.016 seconds to poll: .
> [(camel-1) thread #1 - file://.] FileConsumer                   DEBUG Took
> 0.000 seconds to poll: .
> [(camel-1) thread #1 - file://.] FileConsumer                   DEBUG Took
> 0.000 seconds to poll: .
> [(camel-1) thread #1 - file://.] FileConsumer                   DEBUG Took
> 0.016 seconds to poll: .
> [(camel-1) thread #1 - file://.] FileConsumer                   DEBUG Took
> 0.000 seconds to poll: .
> [(camel-1) thread #1 - file://.] FileConsumer                   DEBUG Took
> 0.015 seconds to poll: .
> [(camel-1) thread #1 - file://.] FileConsumer                   DEBUG Took
> 0.000 seconds to poll: .
> [(camel-1) thread #1 - file://.] FileConsumer                   DEBUG Took
> 0.000 seconds to poll: .
>
> I can see that the route is started as well. But why wouldn't the output
> file be written be written? Also why does it poll those many times as above?
>
> Here is how my route looks like:
>
> from("file:.?fileName=my.xml").to("file:.?fileName=my1.xml")
>
> Regards,
> Jothi
>

Reply via email to