I scheduled quartz jobs using the spring application context to run each night. Now I want to change the cron job for an already running application so it runs an hour later. We want to change the cron job in the application context and then restart the application for changes to take effect. We do not have acces to the database for security reasons.
I use a CronTriggerBean
to run a jobDetail and also supply a cron expression. Now if I change the cron expression and restart the application it does not update the actual cron expression, because this is stored in the database.
How can I make sure the cron expression is updated each time I restart the application?
Edit: Quartz takes the cron expression from the application context and stores this internally in the database. Upon restarting the application with the new cron expression it does not update the value in the database and keeps using the old expression.