File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Groovy and the fly likes Passing parameters to Quartz job Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Passing parameters to Quartz job" Watch "Passing parameters to Quartz job" New topic

Passing parameters to Quartz job

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8927

Does anyone know how to pass parameters to quartz job in grails and how to read those parameters in the job class.

Peter Ledbrook

Joined: Jul 15, 2009
Posts: 25
It depends what sort of parameters you are talking about. You can have any Spring-managed object (such as a Grails service) automatically injected into your job:

You can also access configuration data like so:

The config property on the application object gives you access to the data specified in grails-app/conf/Config.groovy.


Anton Vitrilo

Joined: Nov 04, 2011
Posts: 1
The JobDetail object contains various property settings for the Job, as well as a JobDataMap, which can be used to store state information for a given instance of your job class.

I agree. Here's the link:
subject: Passing parameters to Quartz job
It's not a secret anymore!