Skip to content

Use Quartz's JobExecutionContext.getMergedJobDataMap() in QuartzJobBean [SPR-1595] #6292

@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions