How to create CronTriggerBean at runtime? I need to read the configuration details from database and create CronTriggerBean on application startup.
How to create CronTriggerBean at runtime? I need to read the configuration details from database and create CronTriggerBean on application startup.
Any solusion will be a great help.
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.
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.