Would be awesome to let quartz handle the polling interval logic, then we
could use CRON expressions, to set the interval to run at 4:15am in the
night, so it wont be active during backup runs from 1am-3am etc.

As now the polling is based on when your application/host server was started
etc. In my experience being able to run jobs where you can determine the
interval to be fixed at hours:mins is much better.

/Claus


James.Strachan wrote:
> 
> On 23/03/2008, spasco <[EMAIL PROTECTED]> wrote:
>>
>>  How would you go about extracting XML document from a URL then saving
>> that
>>  file to disk? I'd like this setup to poll the URL about once per day.
> 
> something like this should do the trick...
> 
> from("http://foo.bar/something.xml?delay=1000";).to("file://mydir/something.xml");
> 
> where the delay is the polling delay in milliseconds.
> 
> I guess we could do with an easier mechanism to configure the polling
> interval; maybe including in the DSL some kind of mechanism to specify
> polling times.
> 
> -- 
> James
> -------
> http://macstrac.blogspot.com/
> 
> Open Source Integration
> http://open.iona.com
> 
> 

-- 
View this message in context: 
http://www.nabble.com/extract-xml-from-URL-and-save-to-file-tp16232121s22882p16274777.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to