I have configured spring-quartz in my application it works. Schedule a job register triggers with and works fine.
Every time it restart, all the existing triggers from table get deleted but not the jobs
this my quartz configuration
spring.quartz:
initialize-schema: never
job-store-type: jdbc
properties:
org.quartz.jobStore:
class: org.quartz.impl.jdbcjobstore.JobStoreTX
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate #(for fully JDBC-compliant drivers)
dataSource : quartzDataSource
isClustered: true #if you are having multiple instances of Quartz use the same set of database tables
org.quartz.dataSource.quartzDataSource.driver: com.mysql.cj.jdbc.Driver
org.quartz.dataSource.quartzDataSource.URL: jdbc:mysql://localhost:3306/quartz
org.quartz.dataSource.quartzDataSource.user: root
org.quartz.dataSource.quartzDataSource.password: admin
org.quartz.dataSource.quartzDataSource.maxConnections: 30
New contributor
Raman Tayal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.