Refactored cron-based "OddEvenDemo" sample for new TaskScheduler interface based on Trigger (and the CronTrigger in particular).
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
<classpathentry combineaccessrules="false" kind="src" path="/org.springframework.integration.adapter"/>
|
||||
<classpathentry combineaccessrules="false" kind="src" path="/org.springframework.integration.file"/>
|
||||
<classpathentry combineaccessrules="false" kind="src" path="/org.springframework.integration.ws"/>
|
||||
<classpathentry combineaccessrules="false" kind="src" path="/org.springframework.integration.quartz"/>
|
||||
<classpathentry combineaccessrules="false" kind="src" path="/org.springframework.integration.stream"/>
|
||||
<classpathentry kind="output" path="target/classes"/>
|
||||
</classpath>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
http://www.springframework.org/schema/integration
|
||||
http://www.springframework.org/schema/integration/spring-integration-1.0.xsd">
|
||||
|
||||
<message-bus task-scheduler="quartzTaskScheduler"/>
|
||||
<message-bus/>
|
||||
<annotation-driven/>
|
||||
|
||||
<channel id="even"/>
|
||||
@@ -36,14 +36,4 @@
|
||||
|
||||
<beans:bean id="evenLogger" class="org.springframework.integration.samples.oddeven.EvenLogger"/>
|
||||
|
||||
<beans:bean id="quartzTaskScheduler" class="org.springframework.integration.scheduling.spi.ProviderTaskScheduler">
|
||||
<beans:constructor-arg>
|
||||
<beans:bean class="org.springframework.integration.quartz.QuartzScheduleServiceProvider">
|
||||
<beans:constructor-arg>
|
||||
<beans:bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean"/>
|
||||
</beans:constructor-arg>
|
||||
</beans:bean>
|
||||
</beans:constructor-arg>
|
||||
</beans:bean>
|
||||
|
||||
</beans:beans>
|
||||
|
||||
Reference in New Issue
Block a user