Quantcast

Quartz+Spring+Tomcat : Cron Job fired twice on server startup.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Quartz+Spring+Tomcat : Cron Job fired twice on server startup.

gravy-2
Hi friends,
    I am using Quartz cron job for scheduling some specific task.
Environment : Spring application running on Tomcat.
There are two triggers :

SimpleTrigger(Job) which will run for every 1 hour/specified time, and schedules the cronJob if there is any change in cronExpression(from dbase).

CronTrigger(Job) will be called by simpleTrigger as mentioned above.


After scheduling Job from UI if Tomcat server is restarted then the same job will be fired twice.
If after scheduling job from UI if we do not start Tomcat server then the job will be scheduled only once.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=407246&messageID=494672#494672


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...