Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Quartz.Net Scheduler to Run as a Windows Services

This is first post on regarding the Quartz.net in this group. Hope will find my answers.

I am really new to work with Quartz.Net. One of our customer wanted us to schedule the tasks in Quartz instead of writing a Own scheduler logic.

Initially, i did some samples and tried out with the sample tasks (not so handy on that). I feel little bit cumbersome in working with Quartz.Net.

What we really wanted is,

1.) First How to Configure and Setup Quartz.Net to run as a Windows Services

2.) We have to run the Quartz as a Windows Services and should look for the Scheduled Time of the job and invoke.

3.) Then How to Integrate our Quartz Logic to the Service.

I Googled and got the links on how to Setup the service http://geekswithblogs.net/TarunArora/archive/2012/11/16/install-quartz.net-as-a-windows-service-and-test-installation.aspx

and i was mere success on setting it up, but after when i Looked the below link

http://geekswithblogs.net/TarunArora/archive/2012/11/17/quartz.net-writing-your-first-hello-world-job.aspx

Here i have some questions, the Quartz.Net Service directory path ie "C:\Program Files(x86)\Quartz.Net" whether it will be created automatically or we nee to create that one.

After doing all the pasting the job to the Quartz then what is the purpose of coming back and hitting F5 in the project.

Any helps.

like image 421
Viswajith Krishna S Avatar asked May 12 '15 06:05

Viswajith Krishna S


People also ask

Why we should not use Quartz scheduler?

It has no built-in UI for configuration or monitoring, no useful and reasonably searchable logging or historical review, no support for multiple execution nodes, no administration interface, no alerts or notifications, not to mention buggy recovery mechanisms for failed jobs and missed jobs.

What is Quartz server exe?

Quartz.NET is an enterprise-ready scheduler derived from the java-based Quartz package. The standalone server component (Quartz. Server.exe) accepts, schedules and executes jobs on behalf of any application, but it is typically found supporting ASP.NET applications.

What is quartz scheduler used for?

Quartz scheduler allows an enterprise to schedule a job at a specified date and time. It allows us to perform the operations to schedule or unschedule the jobs. It provides operations to start or stop or pause the scheduler. It also provides reminder services.


1 Answers

You will need to implement the windows service yourself. In the OnStart event initialize and start the instance of quartz.net. In the OnStop event make sure to stop quartz. That's pretty much it.

like image 83
Dmitri Tsoy Avatar answered Nov 13 '22 22:11

Dmitri Tsoy