spring task:scheduled-tasks default scheduler pool size -


we using spring's task:scheduled-tasks schedules 1 task based on cron expression. our basic config looks this. question is, since not providing reference scheduler "task:scheduled-tasks", how work? kind of default configuraiton generates automatically?

<task:scheduled-tasks>     <task:scheduled ref="runscheduler" method="run"         cron="0 0/5 * * * ?" /> </task:scheduled-tasks> 

fore more information on example here based on example.

all information explained article.

but resume, configuration:

<task:scheduled-tasks> <task:scheduled ref="runscheduler" method="run"     cron="0 0/5 * * * ?" /> </task:scheduled-tasks> 

into "task:scheduled" have "ref" attribute reference bean runscheduler. can declare by:

  • xml configuration file, in example file "resources/spring/batch/jobs/job-report":

    <bean id="runscheduler" class="com.mkyong.runscheduler" />

  • annotation:

    @component

    public class runscheduler {

    ... 

    }


Comments