-
Sep 27th, 2008, 09:46 AM
#1
MethodInvokingJobDetailFactoryBean
Hi All
Can anybody send me the full source code for creating the wrapper class for org.springframework.scheduling.quartz.MethodInvoki ngJobDetailFactoryBean for configuring Quartz 1.6.0 in clustered enviornment with Spring 2.0.7 and jboss-4.2.2.GA. OR pls send me the full configurations to achieve this.
Thanks in Advance
Aneesh Chandran
-
Jan 28th, 2009, 09:01 AM
#2
<bean id="quartzDetail" class="org.springframework.scheduling.quartz.Metho dInvokingJobDetailFactoryBean">
<property name="targetObject" ref="thresholdMonitorService" />
<property name="targetMethod" value="runJob" />
</bean>
<bean id="quartzTrigger" class="org.springframework.scheduling.quartz.CronT riggerBean">
<property name="jobDetail" ref="quartzDetail" />
<property name="cronExpression" value="0 0,10,20,30,40,50 * * * ?"/>
</bean>
<bean id="quartzBean" lazy-init="false" autowire="no" class="org.springframework.scheduling.quartz.Sched ulerFactoryBean">
<property name="triggers">
<list>
<ref bean="quartzTrigger" />
</list>
</property>
<property name="quartzProperties">
<value>
org.quartz.threadPool.class=org.quartz.simpl.Simpl eThreadPool
org.quartz.threadPool.threadCount=10
</value>
</property>
</bean>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules