This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Pragmatically quartz in grails

I have a problem. I wanna create a Job but not when application is started. I wanna invoke method from pingServcie but is null.

This is my code:

Job class

class MyJob implements Job {

def pingService

@Override
void execute(JobExecutionContext context) throws JobExecutionException {
pingService.checkPing()
}
}
I read somewhere that I need bean with my Service class, because Spring Autowire doesn't work in this case, so I create it (I never work with bean so I don't if this is correct). I create resources.xml instead of resources.groovy