views:

272

answers:

2

Is there any way of adding jobs to Quartz.Net jobstore without starting up a scheduler instance?

A: 

If you're using a database based job store you could add it directly to the database. Although that's not the recommended way of doing it, it's certainly possible.

TskTsk
I have tried that, by using some of the data-access-classes in Quartz, but some of the parameters are not set. I think it is to much of a hack of i need to calculate internal values on my own.
Henrik Jepsen
+1  A: 

For creating a managing instance (a scheduler that is used just for job and trigger configuration, like web) you can change your thread pool to ZeroSizeThreadPool that allows you to start scheduler without the fear of it actually running any jobs.

You should always use the scheduler interface instead of direct database access.

Marko Lahma