Thursday, 15 August 2013

servlets - Quartz Shutdown hook -



servlets - Quartz Shutdown hook -

we have implemented quartz api schedule jobs.and triggering these jobs using ui using servlets. below flow. html ui --> job triggering request goes servlet --> servlet invokes quartz api schedule job.

here question is, want notify(mail notiifcation) user in below cases 1.application goes down. 2.quartz job shutsdown(because of issue)

is there possibility hook of above mentioned cases notify user?

thanks, satyendra

quartz not provide monitoring functionality. have 2 options:

you implement yourself. in case should check quartz api javadoc. interested in joblistener , schedulerlistener apis monitor job executions , scheduler status changes respectively.

you can utilize , existing 3rd party solutions such jwatch, or quartzdesk (i biased here).

servlets quartz-scheduler

No comments:

Post a Comment