Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring to run Quartz job

nv reddy
Posts: 6
Java Mac PPC Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I am looking for Quartz Job with Spring Examples and I was wondering, Can we set the cronexpression different for each Job in paramaters.

Example applicationContext :

<bean id="trigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="job" />
<property name="cronExpression" value="0/5 * * * * ?"/>

Here we set cronexpression for the Job but, I have differnet Jobs which should be running on different Times. Please let me know, if you have any suggestions.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic