I want to create quartz jobs that use JdbcStore, as described in the docs clustering section, in Burt's example.
This example shows how to configure quartz using the quartz.properties file.
Now I would like my jdbc repository to be the same database as my grails application, so I have less duplication settings.
So, if I manually create the necessary tables in my database, can I use the default dataSource configured in Datasource.groovy with the quartz plugin?
I am using grails 2.4.4 and quartz 1.0.2.
In other terms, can I add my settings to QuartzConfig.groovy and not create a new quartz.properties file? At least I could use the settings of individual environments.
Will there be something like this in action at QuartzConfig.groovy?
quartz { autoStartup = true jdbcStore = true waitForJobsToCompleteOnShutdown = true exposeSchedulerInRepository = true props { scheduler.skipUpdateCheck = true threadPool.class = 'org.quartz.simpl.SimpleThreadPool' threadPool.threadCount = 50 threadPool.threadPriority = 9 jobStore.misfireThreshold = 60000 jobStore.class = 'impl.jdbcjobstore.JobStoreTX' jobStore.driverDelegateClass = 'org.quartz.impl.jdbcjobstore.StdJDBCDelegate' jobStore.useProperties = false jobStore.tablePrefix = 'QRTZ_' jobStore.isClustered = true jobStore.clusterCheckinInterval = 5000 plugin.shutdownhook.class = 'org.quartz.plugins.management.ShutdownHookPlugin' plugin.shutdownhook.cleanShutdown = true jobStore.dataSource = 'myDS' // [...] }
grails quartz-scheduler grails-plugin
Philippe
source share