Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6081797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:12:58+00:00 2026-05-23T11:12:58+00:00

I’m creating a scheduler using Quartz.NET in the current project. In my case all

  • 0

I’m creating a scheduler using Quartz.NET in the current project. In my case all the jobs that has to be created are stored in a single table and there is a separate UI where I can add new jobs or edit existing jobs. My question is how I can feed all the jobs in the table to the Quartz scheduler? Do I want to query for all the jobs in the table and iterate through it creating the JobDetails and Trigger objects? Is there any better way in this case?

In this case do I want to use a RAMJobStore or AdoJobStore?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:12:58+00:00Added an answer on May 23, 2026 at 11:12 am

    you can use AdoJobStore.
    Quartz.net will use a set of tables with prefix QRTZ_ (you can change it if you want) in your database to stored jobs, triggers and status of these objects.
    I guess you want to have a table in your DB where you’re going to keep extended information about your schedules, right?
    You won’t access Quartz.net table directly cause you will use the APIs provided by Quartz.net.

    The process to create a job detail and trigger is straightforward and described very well in the tutorials.

    To configure your app to use the AdoJobStore you have to specify few informations in your app.config file.
    Here is an example:

      <quartz>
        <add key="quartz.scheduler.instanceName" value="myApp" />
        <add key="quartz.scheduler.instanceId" value="MyApp" />
        <!-- Configure Thread Pool -->
        <add key="quartz.threadPool.type" 
                      value="Quartz.Simpl.SimpleThreadPool, Quartz" />
        <add key="quartz.threadPool.threadCount" value="10" />
        <add key="quartz.threadPool.threadPriority" value="Normal" />
        <!-- Configure Job Store -->
        <add key="quartz.jobStore.misfireThreshold" value="60000" />
        <add key="quartz.jobStore.type" 
                      value="Quartz.Impl.AdoJobStore.JobStoreTX, Quartz" />
        <add key="quartz.jobStore.useProperties" value="true" />
        <add key="quartz.jobStore.dataSource" value="default" />
        <add key="quartz.jobStore.tablePrefix" value="QRTZ_" />
        <add key="quartz.jobStore.lockHandler.type"  
                  value="Quartz.Impl.AdoJobStore.UpdateLockRowSemaphore, Quartz" />
        <add key="quartz.dataSource.default.connectionString" 
            value="Server=SVSQL2008;Database=QuartzNet1;Trusted_Connection=True;" />
        <add key="quartz.dataSource.default.provider" value="SqlServer-20" />
       </quartz>
    

    There are few things to keep in mind depending if you’re hosting Quartz.net in a web application or a service or winform app.
    The best approach is to create SchedulerFactory and Scheduler as singleton.
    You can gather some more infos here.

    UPDATE:

    First of all you have to create Quartz.net tables (see Step 1) and then you’ll have to create a few indexes for optiomization (see bottom of the page).

    Since you’re going to submit your jobs using the web app but you’re not using that app for the quartz.net events (triggers) you don’t need to start the scheduler.
    There are few steps to follow on this side:

    you have to change the thread pool type to ZeroSizeThreadPool

    <add key="quartz.threadPool.type" 
                       value="Quartz.Simpl.ZeroSizeThreadPool, Quartz" />
    

    and you have to define your StdSchedulerFactory and Scheduler singleton. You can start during the application (asp.net) bootstrap.

    You’re never going to start the Scheduler (your windows service is going to use that).

    Another thing to remember is you’re going to need share your job between your web and your windows service, so it would be better to keep it in a separate assembly.

    You mentioned you’re storing some infos in one of your table.
    You still need to have to submit your jobs and trigger which will be persisted in Quartz.net tables.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
Basically, what I'm trying to create is a page of div tags, each has
I am reading a book about Javascript and jQuery and using one of the
I have a French site that I want to parse, but am running into
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.