Announcement Announcement Module
Collapse
No announcement yet.
MethodInvokingJobDetailFactoryBean Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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>

    Comment

    Working...
    X