日期:2014-05-19 浏览次数:20810 次
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd">
<!-- DRG抓取包裹信息 1小时一次 end-->
<!-- TMS转运 1小时一次-->
<bean id="timeGetPackageState2Infomation" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="tmsRouteSearchManagerAction"/><!-- 自己在定义 的struts的bean名字-->
</property>
<property name="targetMethod">
<value>getPackageInfomation</value><!-- 调用执行的方法-->
</property>
</bean>
<bean id="timeGetPackageState2InfomationTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail">
<ref bean="timeGetPackageState2Infomation"/> <!--调用上面声明的bean -->
</property>
<property name="cronExpression">
<value>0 */1 * * * ?</value> <!-- 每5分钟触发一次 -->
<!-- <value>0 0 */1 *&nbs