P E N C I L
Login

Schedule

  1. http://docs.spring.io/spring/docs/current/spring-framework-reference/html/scheduling.html
    Executor
    vs Schedule
    Schedule = Executor + schedule plan
    <task:annotation-driven executor="myExecutor" scheduler="myScheduler"/>
    executor is used for Async (thread pool ex)
    schedule is sude for Schedule (schedule is an executure and can be thread pool)
  2.  
  3.  
  4. xmlns:task="http://www.springframework.org/schema/task"
               http://www.springframework.org/schema/task
      
             http://www.springframework.org/schema/task/spring-task.xsd
    <task:annotation-driven executor="taskExecutor"/>
    <task:executor id="taskExecutor" pool-size="5"/>
  5. Exception:
    1. ​Fail silently !
      You should try catch with Throwable rather than Exception
      (ex: class NotFound is throwable and it will be hidden)