Skip to content

Spring "SchedulerFactoryBean" overrides the Quartz "jobstore" properties values  #23632

Closed
@ms3eed

Description

@ms3eed

If you are using Spring's SchedulerFactoryBean, it overrides the configured value from the properties file.
So if you tried to use JobStoreTx it is always overridden by the LocalDataSourceJobStore from spring

Code snippet below shows the part from the SchedulerFactoryBean. I have overcome it by using a customizer.

		if (this.dataSource != null) {
			mergedProps.setProperty(StdSchedulerFactory.PROP_JOB_STORE_CLASS, LocalDataSourceJobStore.class.getName());
		}

What if I wan to extend the existing LocalDataSourceJobStore?

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)status: supersededAn issue that has been superseded by another

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions