Based on Xxl-job (article address: https://segmentfault.com/a/1190000008597164) Transformation, the introduction of the article on the scheduling has a detailed description. Next I'll just say how I integrate this distributed Task Scheduler into my project. Environment Description: TOMCAT7, Jdk6, mysql5.6, Jetty8, maven
The consolidation steps are as follows:
The first step: Download demo, Address: http://download.csdn.net/download/u013294278/9941555
Step two: Directly unzip the compressed package and import Spring-scheduler directly into eclipse
Step three: Install mysql5.6 and create Ss_job library. and execute the initialization script Init.sql script. The source above forgot to add the initialization script. Please go to this address to download: Http://git.oschina.net/JornTang/JingTaiZiYuanGuanLi/tree/master
Step Fourth: Direct release of Spring-scheduler-amdin, spring-scheduler-client two Web projects to Tomcat.
Login Task Dispatch Center: http://127.0.0.1:8080/spring-scheduler-admin/
Configure the actuator and task at the Dispatch center.
Configuring the Actuator
The above actuator configuration is complete, and then configure the task
The above configuration is basically complete. Starting Tomcat will see the following scheduling information
The above is distributed task scheduling all the integration steps.
The above projects if you want to integrate into their own projects can refer to my own integration steps:
Step one: Throw Spring-scheduler-admin into the war package and toss it to Tomcat.
Step two: Throw the spring-scheduler-client into a jar bag and drop it into your own project while introducing the dependent jar pack simultaneously
Step three: Move the spring-scheduler-client-related configuration to your project in your own project
It is no problem to basically integrate into your own project through the above 3 steps. ^-^