camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark <>
Subject Simple Dir Polling Has me stumped
Date Fri, 30 Sep 2011 12:15:23 GMT

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?

View raw message