<?xml version= "1.0" encoding= "UTF-8"?>
<beans xmlns= "Http://www.springframework.org/schema/beans"
Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"
Xsi:schemalocation= "
Http://www.springframework.org/schema/beans
Http://www.springframework.org/schema/beans/spring-beans-3.1.xsd ">
<!--task Detail bean--
<bean id= "Jobdetailbean" class= "Org.springframework.scheduling.quartz.JobDetailBean" >
<!--specify quartz tasks by task class--
<property name= "Jobclass" value= "Com.scheduler.CreateLogTablesTask"/>
<property name= "Jobdatamap" >
<map>
<entry key= "Logservice" value-ref= "Logservice" ></entry>
</map>
</property>
</bean>
<!--cron Trigger Bean, set the scheduling strategy for quartz tasks--
<bean id= "Crontriggerbean" class= "Org.springframework.scheduling.quartz.CronTriggerBean" >
<property name= "Jobdetail" ref= "Jobdetailbean"/>
<property name= "Cronexpression" > <!--cron Expressions--
<!--second-day anniversary--
<value>0 *?</value>
</property>
</bean>
<!--dispatch factory Bean, activate trigger to run
<bean id= "Schedulerfactorybean" class= "Org.springframework.scheduling.quartz.SchedulerFactoryBean" >
<property name= "Triggers" >
<list>
<ref bean= "Crontriggerbean"/>
</list>
</property>
</bean>
</beans>
Task Scheduler configuration file