websphere上部署spring quartz问题求教
在tomcat 下可以运行定时任务,但发布到webshpere上,好像就是不启动以下为定时任务的配置
<?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="taskJob" class="com.util.TaskJob"/>
<bean id="test" class="org.springframework.sche易做图ng.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="taskJob"/>
</property>
<property name="targetMethod">
<value>test</value>
</property>
</bean>
<bean id="cronTrigger1" class="org.springframework.sche易做图ng.quartz.CronTriggerBean">
<property name="jobDetail">
<ref bean="test"/>
</property>
<property name="cronExpression">
<value>0 0/1 * * * ?</value>
</property>
</bean>
<bean class="org.springframework.sche易做图ng.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref local="cronTrigger1"/>
</list>
</property>
</bean>
</beans>
在web.xml中配置如下(部分):
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/TimerConfig.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
补充:企业软件 , WebSphere