Hi everybody,
We upgraded our project on spring 3.1 and we use quartz for scheduling actions on application's starting (and other).
In the previous version of spring (2.5), it was possible to set the number of repeating time of a task in "SimpleTriggerBean" by the property "repeatCount".
But, in the 3.1 version of spring with quartz 2.0, this property has disappeared in "SimpleTriggerFactoryBean" and i don't find any workaround.
In old version (2.5):
In new version (3.1) :Code:<bean id="jobRebuildHibernateSearchSimpleTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerBean"> <property name="jobDetail" ref="jobRebuildHibernateSearchDetail" /> <property name="startDelay" value="6000" /> <property name="repeatInterval" value="999" /> <property name="repeatCount" value="0" /> </bean>
Get tips ?Code:<bean id="jobRebuildHibernateSearchSimpleTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerFactoryBean"> <property name="jobDetail" ref="jobRebuildHibernateSearchDetail" /> <property name="startDelay" value="6000" /> <property name="repeatInterval" value="999" /> </bean>
Thanks in advance


Reply With Quote