<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
	<bean name="reviseQuartzScheduler" lazy-init="false" autowire="no"
		class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
		<property name="triggers">
			<list>
				<ref bean="scanFtpMovieTrigger" />
<!-- 				<ref bean="scanFtpMovieTrigger2" /> -->
<!-- 				<ref bean="scanFtpMovieTrigger3" /> -->
<!-- 				<ref bean="scanFtpMovieTrigger4" /> -->
			</list>
		</property>
	</bean>

	<!-- 扫描ftp节目任务 -->
	<bean id="scanFtpMovieTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
		<property name="jobDetail">
			<ref local="scanFtpMovieJob" />
		</property>
		<!-- 每天22点30分执行,时间配置格式: 秒 分 时 天 月 年-->
		<property name="cronExpression">
			<value>0 45 9,10,11,12 * * ?</value>
		</property>
	</bean>
	<bean id="scanFtpMovieJob"
		class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
		<property name="targetObject">
			<ref bean="scanFtpMovieTask" />
		</property>
		<property name="targetMethod">
			<value>timerTest</value>
		</property>
	</bean>
	<bean id="scanFtpMovieTask" class="com.jsh.action.demo.ChannelAction" />
</beans>