Results 1 to 4 of 4

Thread: Configure CronTriggerBean at runtime

  1. #1

    Default Configure CronTriggerBean at runtime

    How to create CronTriggerBean at runtime? I need to read the configuration details from database and create CronTriggerBean on application startup.

  2. #2

    Default

    Any solusion will be a great help.

  3. #3
    Join Date
    Mar 2010
    Location
    Boston, MA
    Posts
    316

    Default

    I havent used CronTriggerBean before..but what you could possibly do is specify initialization code in the init method of that springbean..the init method gets called at server startup and you can specify the method to be called on init in the spring config files.

  4. #4
    Join Date
    Jun 2010
    Location
    Sydney
    Posts
    9

    Default

    Use a bean reference to the SchedulerFactoryBean to get direct access to the org.quartz.Scheduler. The Scheduler allows you to create new jobs and triggers at runtime, and also to control and monitor the Scheduler.

Posting Permissions

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