Hi, I think you can change your route from pulling request to direct producer mode. The route is just like this: from("direct:start").to("http://server.com/file.txt").
If you need to pulling the file from the server just once, you can send a empty message to the "direct:start" with the camel ProducerTemplate[1]. [1]http://camel.apache.org/producertemplate.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Monday, January 21, 2013 at 6:40 AM, Christian Schäfer wrote: > Hello, > is there a way to force the execution of a http consuming route to run only > once? > > My use case: I have a route (from("http//server.com/file.txt > (http://server.com/file.txt)").to(...) ) that is created with autostart false. > > Another route is responsible to trigger that http route to consume the file. > > My problem: sometimes when suspending/stopping of the http route (via > camelcontext) isn't fast enough the http route route runs again. > > Is there a way / parameter to prevent this? > > I just found a an ugly workaround by setting a high delay at the end of the > route. > But I don't think that it is good because suspension or stopping of the route > seems to me like aborting or killing the route (which is "busy" with delaying) > > Would appreciate any suggestion? > > regards, > Chris