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

  • Quartz cronTrigger not firing

    I have a problem with Quartz scheduler,

    My config looks like one below,

    in my cronExpression I specified to

    fires every 5 minutes, at 10 seconds after the minute (i.e. 10:00:10 am, 10:05:10 am, etc.) between 10 to 13 hrs of days from Mon to Fri

    but some reason it is not firing the job, I doubt my configuring of whole file is wrong,


    Please correct my error


    ********************************

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

    <beans>


    <!-- Quartz job scheduler -->



    <bean id="hello" class= "com.xchanging.repository.datapump.osnd.Hello"/>

    <bean id="jobDetail" class="org.springframework.scheduling.quartz.Metho dInvokingJobDetailFactoryBean">
    <property name="targetObject" ref="hello" />
    <property name="targetMethod" value="test" />
    <property name="concurrent" value="false" />
    </bean>

    <bean id="cronTrigger" class="org.springframework.scheduling.quartz.CronT riggerBean">
    <property name="jobDetail" ref="jobDetail" />

    <property name="cronExpression" value="10 0/5 11-12 ? * MON-FRI" />


    </bean>


    <bean id = "schedularFactory" class="org.springframework.scheduling.quartz.Sched ulerFactoryBean">
    <property name="triggers">
    <list>
    <ref bean="cronTrigger" />
    </list>
    </property>
    </bean>



    </beans>

  • #2
    Hi,

    i have a problem for m y quartz:
    My job run once / day at 5am after the factor job.
    i used crontrigger like this:
    "0 0 5 * * ?" but i dont know how to represente the expression after the factor jab? in the beans or others???
    Can you help me please

    Comment

    Working...
    X