[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Reconfiguring a Trigger  XML
Forum Index -> Quartz
Author Message


maybe someone can help.

Following situation:

I want to use quartz in an web application. So I init quartz with the org.quartz.ee.servlet.QuartzInitializerServlet. After this my servlet is started, which creates a job and schedule it with a crontrigger. The job should start every minute. This works fine. So my Job creates some jobs every time, which starts directly.

My problem is now, that I want to reconfigure the first job to run on different times (maybe every minute, maybe every two minutes, then every minute again). I try to reschedule the job with a changed trigger. At the moment I use a Listener for the trigger to reschedule after complete of the trigger. This seems not to work, because the listener is called after the reschedule, so this can result in a not wanted loop.

Is there a working solution for doing my task?

Best regards



Joined: 05/24/2006 14:28:28
Messages: 493

How about 2 separate triggers?

Sreeni Iyer, Terracotta.
Not a member yet - Click here to join the Terracotta Community

Joined: 11/06/2009 15:29:56
Messages: 1703

Or reschedule the job from within the job.
Forum Index -> Quartz
Go to:   
Powered by JForum 2.1.7 © JForum Team