I've been using quartz for years and love it. The JDBC job store can be a 
little tricky to get working, but it gives you just what you're looking 
for, and once it is set up, it is rock solid. Reply if you are having 
trouble setting it up and I'll post the settings I've used.

Wesley

On Wednesday, October 24, 2012 1:37:14 AM UTC-7, rakesh mailgroups wrote:
>
> Hi,
>
> I have some batch jobs running and am using Quartz Schedular. They run 
> based on a specific time schedule (eg 55 and 25 minutes each hour over 24 
> hours).
>
> Thing is, I have (at a minimum) 2 nodes running the same software for 
> disaster recovery reasons. So I need a way to only run a job by one of the 
> nodes.
>
> Turns out its quite tricky to get right and I keep finding bugs which are 
> hard to reproduce!
>
> The current implementation requires each node to write to the db first to 
> say its going to run the job, then read back the record to see if 
> it succeeded in the write (there's a unique key on the job name) and if so, 
> run the job.
>
> However, there seem to be issues with overlapping jobs (I think, hard to 
> diagnose after the fact and they are intermittent).
>
> I was wondering if there was an easier solution out there I could easily 
> use?
>
> Thanks
>
> Rakesh
>

-- 
You received this message because you are subscribed to the Google Groups "Java 
Posse" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/javaposse/-/ZjGaaSih0SAJ.
To post to this group, send email to javaposse@googlegroups.com.
To unsubscribe from this group, send email to 
javaposse+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to