Results 1 to 3 of 3

Thread: Interaction of LocalDataSourceJobStore and SchedulerFactoryBean

  1. #1
    Join Date
    Apr 2006
    Location
    South Carolina
    Posts
    122

    Post Interaction of LocalDataSourceJobStore and SchedulerFactoryBean

    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.
    Last edited by Bron; Jun 14th, 2006 at 02:36 PM.

  2. #2

    Default

    This thread http://forum.springframework.org/showthread.php?t=10118 looks like it has what you need I think. It looks like you need the SchedularFactoryBean and then in the Quartz properties you tell it the JobStore the the LocalDatasource one

    org.quartz.jobStore.class = org.springframework.scheduling.quartz.LocalDataSou rceJobStore

    Does anyone else have more input here?

  3. #3
    Join Date
    Apr 2006
    Location
    South Carolina
    Posts
    122

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •