quartz預設設定方式為使用記憶體,將改成database功能關閉後,即會使用記憶體方式執行。


<bean id="quartzScheduler" destroy-method="destroy">
<!-- turn auto startup off to disable quartz daemon -->
<property name="autoStartup" value="true"/>
<property name="jobFactory" ref="jobFactory"/>
<property name="configLocation" value="classpath:quartz/simple/quartz.properties"/>
<!-- override job store properties in quartz.properties -->
<!-- <property name="dataSource" ref="quartzDataSource"/> -->
<property name="transactionManager" ref="transactionManager"/>
<!-- configure cluster properties -->
<!--<property name="quartzProperties">
<props>
<prop key="org.quartz.jobStore.isClustered">false</prop>
<prop key="org.quartz.jobStore.clusterCheckinInterval">20000</prop>
</props>
</property>
-->

arrow
arrow
    全站熱搜

    shikua 發表在 痞客邦 留言(0) 人氣()