Grails

Removing Triggers and Rescheduling a Quartz 2 Job programatically

In my recent project there was a use case to change repeat interval of job so that job runs after every 8 seconds instead of 1 second. [java] class TestJob { def concurrent = false static triggers = { simple repeatInterval: 1000l // execute job once in 1 sec } def execute() { println...

by Puneet Behl
Tag: getTrigger
17-Jul-2012

Grails

Rescheduling a Quartz job programatically

In our current project on Grails we faced a problem  where we need to change the schedule of quartz job programmatically. The timeout value is read from the database. After doing some googling and digging mailing lists we found the following way- class MyJob{ static triggers = { simple name: 'mySimpleTrigger', group:...

by Bhagwat Kumar
Tag: getTrigger
01-Dec-2009