Spring-scheduler-job distributed task Scheduling __ distributed task scheduling

Source: Internet
Author: User

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. ^-^



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.