After researching for quite some time we came to this conclusion:
Within the Groovy Source Packages we created an interface
interface Task{
void executeTask()
}
Next we created our Task:
class SayHelloTask implements Task{
void executeTask(){
println "Hello"
}
}
Within the resources.groovy
file we added the following:
import package.SayHelloTask
beans = {
sayHelloTask(SayHelloTask){
}
xmlns task: "http://www.springframework.org/schema/task"
task.'scheduled-tasks'{
task.scheduled(ref:'retryEmailTask', method: 'executeTask', cron: '0-59 * * * * *')
}
}
We went with this solution because it cut the overhead of Quartz. It matches how we do things in our Java projects.