On Fri, Sep 30, 2011 at 2:15 PM, Mark <javam...@gmail.com> wrote:
> Hi
>
> I would like to:
>
> a) Poll a directory
> b) Read some meta data about a file in that directory (e.g. length)
>
> Repeat (infered by the Poll) i.e. just watching out for filemeta data
> changing over time.
>
> I though this would work.
>
>                        camelContext.addRoutes(new RouteBuilder() {
>                                public void configure() throws Exception {
>                                        from("file://" + HOME_DIR
> +"/temp/?noop=true&recursive=true&delay=" + POLL_DELAY)
>                                        .process(new MetaConsumerProcessor());
>                                }
>                        });
>
> However a file in the directroy "file://" + HOME_DIR +"/temp/" is only
> processed once no matter howmany time it is polled.
>
> Thoughts anyone?
>

You need to disable idempotent, by setting idempotent=false in the endpoint uri.
Then the file ought to be processed over and over again.




-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to