Tuesday, November 25, 2014

Getting started with grails Quartz jobs

Quick start in grails jobs using the grails Quartz plugin
   class MyJob {
       def grailsApplication

       def execute(context) {
               def myService = grailsApplication.mainContext.myService
               def domainInstance = MyDomain.get(context.mergedJobDataMap.get('domainId'))
       }
   }