This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

AnnouncementAnnouncement Module

Collapse

No announcement yet.

Interaction of LocalDataSourceJobStore and SchedulerFactoryBeanPage Title Module

Interaction of LocalDataSourceJobStore and SchedulerFactoryBean

Jun 14th, 2006, 11:31 AM

I am trying to set up Quartz for a web application that manages jobs and triggers for quartz but uses Spring to initialize the SchedulerFactoryBean's data source. The web front-end needs to access the LocalDataSourceJobStore (which extends JobStoreCMT) to manage the jobs and triggers, but I'm not sure how to extract it from the SchedulerFactoryBean. How should I set up the beans in Spring's XML file to initialize the SchedulerFactoryBean and still use the LocalDataSourceJobStore? If there is a better solution, please let me know.

Comment

My approach was wrong. I was not supposed to be using the LocalDataSourceJobStore. I was supposed to inject the SchedulerFactoryBean into the class that manages jobs and triggers and use that to do the work. Thanks.