You could also try cron4j which, while less customisable than quartz,
is far simpler to use.
It also accepts Runnable's as as tasks which allows for much easier
clojure integration.

user=> (def sched (it.sauronsoftware.cron4j.Scheduler.))
#'user/sched

user=> (.schedule sched "* * * * *" #(println "Hello, World!"))

"dca735307ae35bb7649a8a6800000124bec35ff926b54d06"
user=> (.start sched)



On Oct 30, 4:05 am, Stefan Arentz <[email protected]> wrote:
> What is a good and simple way to run periodic tasks in Clojure? I need  
> to run a simple function every couple of minutes. And make sure that  
> if it throws an exception that it won't kill the periodic task.
>
> I come from a Spring world where XML, Timers, Jobs and Quartz rule the  
> world, so am hoping for something small and elegant for Closure :-)
>
>   S.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to