Stack ScheduledTask Help
Posted: Mon Feb 07, 2011 4:39 pm
We are still on Stack 2.2 RC5 and are using tomcat locally and deploying to WAS. At this point, we are using the stack ScheduledTask (due to issues with Spring/Quartz within WAS), our serviceBeanContext.xml:
...
<bean id="activationSvc" class="org.lds.ics.mtm.firewall.service.ActivationServiceImpl" scope="prototype">
</bean>
...
<util:list id="scheduledTasks">
<bean class="org.lds.stack.spring.scheduling.ScheduledTask">
<property name="period" value="10000" />
<property name="delay" value="10000" />
<property name="runnable">
<bean class="org.springframework.scheduling.support.MethodInvokingRunnable">
<property name="targetObject" ref="activationSvc" />
<property name="targetMethod" value="checkGpmLoadDate" />
</bean>
</property>
</bean>
</util:list>
Initially we thought that a simple delay would work for our needs, but now we are needing to run tasks at certain times, such as 23:50, such as a GPM DB daily refresh check, so what would be easier:
- Trying to get Quartz to run within WAS
- Have Quartz run as a stand-alone app on linux, which calls our methods within WAS
- Upgrade to stack 3.1 and replace WAS with Tomcat in prod
Is there a solution within stack ScheduledTask that I am missing?
Thoughts?
...
<bean id="activationSvc" class="org.lds.ics.mtm.firewall.service.ActivationServiceImpl" scope="prototype">
</bean>
...
<util:list id="scheduledTasks">
<bean class="org.lds.stack.spring.scheduling.ScheduledTask">
<property name="period" value="10000" />
<property name="delay" value="10000" />
<property name="runnable">
<bean class="org.springframework.scheduling.support.MethodInvokingRunnable">
<property name="targetObject" ref="activationSvc" />
<property name="targetMethod" value="checkGpmLoadDate" />
</bean>
</property>
</bean>
</util:list>
Initially we thought that a simple delay would work for our needs, but now we are needing to run tasks at certain times, such as 23:50, such as a GPM DB daily refresh check, so what would be easier:
- Trying to get Quartz to run within WAS
- Have Quartz run as a stand-alone app on linux, which calls our methods within WAS
- Upgrade to stack 3.1 and replace WAS with Tomcat in prod
Is there a solution within stack ScheduledTask that I am missing?
Thoughts?