Spring-boot: Quartz always starting as jobStoreCMT

Created on 6 Sep 2019  路  1Comment  路  Source: spring-projects/spring-boot

Doesn't matter if I put 'JobStoreTX' in 'org.quartz.jobStore.class', the Quartz scheduler always starting as JobStoreCMT.

How can I run as JobStoreTX ?

external-project stackoverflow invalid

Most helpful comment

This is standard behaviour for Spring Framework's Quartz support when configured with a DataSource. The use of Framework's LocalDataSourceJobStore, a JobStoreCMT sub-class, ensures that the store participates in any Spring-managed transactions. JobStoreTX is intended for use in a standalone environment which does not apply when using Spring as it manages transactions for you. If you need to use JobStoreTX you will have to configure Quartz manually rather than using Boot's auto-configuration of Spring Framework's Quartz integration.

>All comments

This is standard behaviour for Spring Framework's Quartz support when configured with a DataSource. The use of Framework's LocalDataSourceJobStore, a JobStoreCMT sub-class, ensures that the store participates in any Spring-managed transactions. JobStoreTX is intended for use in a standalone environment which does not apply when using Spring as it manages transactions for you. If you need to use JobStoreTX you will have to configure Quartz manually rather than using Boot's auto-configuration of Spring Framework's Quartz integration.

Was this page helpful?
0 / 5 - 0 ratings