web前端

位置:IT落伍者 >> web前端 >> 浏览文章

Spring集成Quartz的XML配置


发布日期:2018年05月13日
 
Spring集成Quartz的XML配置

<?xml version= encoding=UTF?>

<beans xmlns=

xmlns:xsi=instance

xmlns:aop=

xmlns:tx=

xsi:schemaLocation=

beansxsd

aopxsd

txxsd

defaultautowire=no defaultlazyinit=false>

<bean id=someData class=comspringjobJobData/>

<bean id=jobDetailBean

class=orgspringframeworkschedulingquartzJobDetailBean>

<property name=jobClass

value=comspringjobDemoJob/>

<property name=jobDataAsMap>

<map>

<entry key=jobData valueref=someData/>

</map>

</property>

</bean>

<bean id=jobDetailBean

class=orgspringframeworkschedulingquartzJobDetailBean>

<property name=jobClass

value=comspringjobDemoJob/>

<property name=jobDataAsMap>

<map>

<entry key=jobData valueref=someData/>

</map>

</property>

</bean>

<bean id=simpleTriggerBean

class=orgspringframeworkschedulingquartzSimpleTriggerBean>

<property name=jobDetail ref=jobDetailBean/>

<property name=repeatInterval value=/>

<property name=startDelay value=/>

</bean>

<bean id=simpleTriggerBean

class=orgspringframeworkschedulingquartzSimpleTriggerBean>

<property name=jobDetail ref=jobDetailBean/>

<property name=repeatInterval value=/>

<property name=startDelay value=/>

</bean>

<bean id=schedulerFactoryBean

class=orgspringframeworkschedulingquartzSchedulerFactoryBean>

<property name=triggers>

<list>

<ref bean=simpleTriggerBean/>

<ref bean=simpleTriggerBean/>

</list>

</property>

</bean>

</beans>

上一篇:MyEclipse配置WebService

下一篇:向Web开发进军 Eclipse发展浅析