1)Which function should I initilize IScheduler object?
void Application_Start(object sender, EventArgs e)
void Init()
void Session_Start(object sender, EventArgs e)
void Application_BeginRequest(object sender, EventArgs e)
...
I implemented in "void Init()".
2)How can I use IScheduler object in web pages where is initilized in
global.asax?
I tried to store in Session and HttpContext.Current.Items but failed.
Latest I used Application to store IScheduler object with success and
used in web pages.
Is there any suggustions about these topics and any other about admin
UI?
Thanks.
My Global.asax:
public override void Init()
{
InitializeScheduler();
base.Init();
}
private void InitializeScheduler()
{
NameValueCollection properties = new
NameValueCollection();
properties["quartz.scheduler.instanceName"] =
"RemoteClient";
// set remoting expoter
properties["quartz.scheduler.proxy"] = "true";
properties["quartz.scheduler.proxy.address"] = "tcp://
localhost:555/QuartzScheduler";
// First we must get a reference to a scheduler
ISchedulerFactory sf = new
StdSchedulerFactory(properties);
IScheduler sched = sf.GetScheduler();
Application["Scheduler"] = sched;
}
https://71.189.190.180:8443/svn/QuartzGUI/
login:quartz.net
pass:opensource
When not using remoting the timezone problem didnt appear. The test
was run locally on 1 machine only.
Have you encountered this problem?
(sorry if I hijacked your thread, but thought you may run into this
problem also)
http://code.google.com/p/quartznet-admin/ -- ASP.NET MVC - based
site for administration
http://code.google.com/p/crystal-quartz/ -- lightweight (no
database or other dependencies) tool for monitoring and simple
administration (start/pause jobs)
Second is my project. It is not mature enough now, but plan to
increase it.