The JobStore interface designed in Quartz is responsible for the persistence and retrieval of all job and trigger data. There are two built-in implementations of the JobStore interface, the RamJobStore and the JDBCJobStore.
The RamJobStore stores the job, trigger, and calendar data in memory, losing its contents after JVM restarts. On the other hand, JDBCJobStore uses the JDBC API to store the same data.
The JDBCJobStore uses a delegate to use specific functions of each database, for example, DB2, PostgreSQL, etc.
The JobStore configuration is located in the quartz.properties
file. To set the JobStore, add the following line to the configuration file, if you want to use the RamJobStore:
org.quartz.jobStore.class = org.quartz.simpl.RAMJobStore
The configuration of the JDBCJobStore is a little more complex as it involves datasources, transactions, and delegates:
To use local JDBC transactions, you only need to set the following parameters:
org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore...