Full Quartz 2.2 support, including LocalDataSourceJobStore
While we've had basic Quartz 2.2 support before, a few details were missing:
* LocalDataSourceJobStore's ConnectionProvider adapters need to provide an empty implementation of Quartz 2.2's new initialize method.
* SchedulerFactoryBean's "schedulerContextMap" needs to be explicitly declared with String keys, otherwise it can't be compiled against Quartz 2.2 (forward compatibility once we're dropping Quartz 1.x support). This doesn't hurt against older Quartz versions either, since the keys need to be Strings anyway.
Issue: SPR-11284
@ -110,14 +109,17 @@ public class LocalDataSourceJobStore extends JobStoreCMT {
@@ -110,14 +109,17 @@ public class LocalDataSourceJobStore extends JobStoreCMT {
publicvoidshutdown(){
// Do nothing - a Spring-managed DataSource has its own lifecycle.
}
/* Quartz 2.2 initialize method */
publicvoidinitialize(){
// Do nothing - a Spring-managed DataSource has its own lifecycle.
}
}
);
// Non-transactional DataSource is optional: fall back to default
@ -135,21 +137,24 @@ public class LocalDataSourceJobStore extends JobStoreCMT {
@@ -135,21 +137,24 @@ public class LocalDataSourceJobStore extends JobStoreCMT {
publicvoidshutdown(){
// Do nothing - a Spring-managed DataSource has its own lifecycle.
}
/* Quartz 2.2 initialize method */
publicvoidinitialize(){
// Do nothing - a Spring-managed DataSource has its own lifecycle.
}
}
);
// No, if HSQL is the platform, we really don't want to use locks
// No, if HSQL is the platform, we really don't want to use locks...