Spring scheduled tasks
- by stackuser
I'm trying to use spring scheduled tasks for my scheduled jobs, I have one scheduler configured for multiple tasks executors as below
<task:scheduled-tasks scheduler="ABCTaskScheduler">
<task:scheduled ref="ABCTaskExecutor" method="execute"
cron="some_expression_1" />
<task:scheduled ref="DEFTaskExecutor" method="execute"
cron="some_expression_1" />
</task:scheduled-tasks>
My question in how can I make the task executor list dynamic, so that I do not have to change my spring config each time I have to add a new task executor.