-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Description
Matt Magoffin opened SPR-1595 and commented
Needed to pass a Quartz job some trigger-specific data via the Scheduler.triggerJobWithVolatileTrigger(jobName,groupName,jobMap) method (Quartz 1.5), but found that the Spring QuartzJobBean calls
context.getJobDetail().getJobDataMap()
to set properties on the job instance, which ignores the jobDataMap passed in with the Trigger, and is available by calling
context.getMergedJobDataMap()
I was wondering if this might be more useful in general, to change QuartzJobBean to use getMergedJobDataMap() to set the property values of the job instance.
I believe this is a new feature of Quartz 1.5, and would not be available with Quartz 1.4, but perhaps Spring's QuartzJobBean could support using the getMergedJobDataMap() if it found Quartz 1.5 available.
Affects: 1.2.6