blogspot.com-GA4

星期二, 2月 22, 2011

quartz設定記憶體

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



<bean id="quartzScheduler" class="com.shingkuang.test.scheduling.SchedulerFactoryBean" 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>
-->
<!-- configure system triggers -->
<property name="overwriteExistingJobs" value="true"/>
<property name="triggers">