If you're interested in functional programming, you might also want to checkout my second blog which i'm actively working on!!

Thursday, September 16, 2010

Quartz Job Scheduling

I had to create quite a few cronjobs for a recent project. I've noticed that the easiest way to manage this was creating a war project so that on deployment the quartz job scheduler kicks in immediately. I faced one problem and that was that on some occasions a job was started before the previous ended and this led to tasks fetched from the database being executed twice.

It's quite easy however to workaround this and below is an example:

No comments:

Post a Comment