带弹簧框架的石英作业商店
2022-09-04 21:02:39
我正在使用Spring Framework在Oracle DB上实现Quartz Job Store。我的应用程序上下文.xml如下
<bean id="driverJob" class="org.springframework.scheduling.quartz.JobDetailBean">
<property name="jobClass" value="BatchFileCollector" />
</bean>
<bean id="ranchTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerBean">
<property name="jobDetail" ref="driverJob" />
<property name="startDelay" value="2000" />
<property name="repeatInterval" value="10000" />
</bean>
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref bean="ranchTrigger" />
</list>
</property>
<property name="dataSource">
<ref bean="dataSource.TEXAN"/>
</property>
<property name="applicationContextSchedulerContextKey">
<value>applicationContext</value>
</property>
<property name="autoStartup">
<value>true</value>
</property>
<property name="configLocation" value="classpath:quartz.properties"/>
</bean>
此配置给我带来了以下错误。
Caused by: org.quartz.JobPersistenceException:
Couldn't store trigger: The job (DEFAULT.driverJob) referenced by the trigger does not exist.
[See nested exception: org.quartz.JobPersistenceException: The job (DEFAULT.driverJob) referenced by the trigger does not exist.]
我正在使用Spring Framework 2.5.6。我必须升级我的石英版本吗?我找不到问题。
感谢您的帮助。