0

I have a web application and have setup Quartz to initialize the scheuduler during application starts up. My question is does Quartz Scheduler live within the same appdomain or the scheduler has its own appdomain?

The reason I asked this is because in my Quartz job, I need to retrieve some configuration data using ConfigurationManager.GetSection["MySettings"] (which is available in my web.config) and sometimes it will complain that it can't find the configuration.

What I'm puzzled is this does not happen to all the instances of the job, it is intermitent.

Anyone faces this kind of issue before?

Regards, lyf

lyf
  • 29
  • 2

2 Answers2

1

Best thing to do is to use JobDataMap.

LeftyX
  • 35,328
  • 21
  • 132
  • 193
0

It runs on the same AppPool, but on different threads, I have my Quartz.NET hosted on a Singleton WCF Service, and the only thing that i had to modify was the Application Pool IdleTimeout, if you don't change that you are at risk that your application pool will be "Stand-by" when idle, change to Zero (no timeout), you can do it manually or by code as shown in this this post

-Regards

Community
  • 1
  • 1
Bongo Sharp
  • 9,450
  • 8
  • 25
  • 35