Hi Team,
I am using a servlet say "QuartzServlet" that implements ServletContextListener. This servlet initializes the Scheduler using
Code:
SchedulerFactory sf = new StdSchedulerFactory("quartz.properties");
Scheduler sched = sf.getScheduler();
sched.start();
I want to use this scheduler instance in another servlet so that i can display the existing jobs and triggers in a jsp. Do i have to create a new instance once again like this
Code:
SchedulerFactory sf = new StdSchedulerFactory("quartz.properties");
Scheduler scheduler = sf.getScheduler();
or get the running instance of the scheduler. If so, how can i get the instance. Please suggest me a solution for the above.
--
Thanks