I'm trying to configure my Quartz project to work with JobStoreTX not with RAMJobStore. I don't get any error but in the console I get:
INFO 77107 --- [main] org.quartz.simpl.RAMJobStore: RAMJobStore initialized.
So code is not working as I would like it to.
My application.properties file have these properties:
using.spring.schedulerFactory=true
spring.quartz.job-store-type=jdbc
spring.datasource.jdbc-url=jdbc:mysql://${MYSQL_HOST:localhost}:3306/quartz_schema
spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
spring.datasource.username=root
spring.datasource.password=password
This is what i have in my Quartz Configuration class
@Bean
@QuartzDataSource
@ConfigurationProperties(prefix = "spring.datasource")
public DataSource quartzDataSource() {
return DataSourceBuilder.create().build();
}