| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Spring Batch is a lightweight, comprehensive batch framework designed to enable the development of robust batch applications vital for the daily operations of enterprise systems. Spring Batch builds upon the productivity, POJO-based development approach, and general ease of use capabilities people have come to know from the Spring Framework, while making it easy for developers to access and leverage more advanced enterprise services when necessary.
If you are looking for a runtime container for your Batch applications, or need a management console to view current and historic executions, take a look at Spring Batch Admin. It is a set of services (Java, JSON, JMX) and an optional web UI that you can use to manage and monitor a Batch system.
Clone the git repository using the URL on the Github home page:
$ git clone git://github.com/SpringSource/spring-batch.git $ cd spring-batch
Use Maven 2.2 or 3.0, then on the command line:
$ mvn install
or, the first time (to download the stuff that isn't in the Maven Central repository):
$ mvn install -P bootstrap
In STS (or any Eclipse distro or other IDE with Maven support), import the module directories as existing projects. They should compile and the tests should run with no additional steps.
This is the quickest way to get started. It requires an internet connection for download, and access to a Maven repository (remote or local).
Read the main project website and the User Guide. Look at the source code and the Javadocs. For more detailed questions, use the forum. If you are new to Spring as well as to Spring Batch, look for information about Spring projects.
Here are some ways for you to get involved in the community:
Before we accept a non-trivial patch or pull request we will need you to sign the contributor's agreement. Signing the contributor's agreement does not grant anyone commit rights to the main repository, but it does mean that we can accept your contributions, and you will get an author credit if we do. Active contributors might be asked to join the core team, and given the ability to merge pull requests.
A convenient way to get started quickly with Spring Batch is to run the samples which are packaged in the samples module. There is also a simple command line sample (or "archetype") which has a bare bones but complete implementation of a simpel job. The source code for the samples (and the other modules) is available either from the Zip assembly or from Git.
(N.B. the "archetype" is not a real Maven archetype, just a template project that can be used as a starting point for a self-contained batch job. It is the same project that can be imported into STS using the Project Template wizard.)
Download the distribution as above.
Then run Maven in the spring-batch-samples directory, e.g.
$ cd spring-batch-samples
$ mvn test
...
Similar instructions would apply to other IDEs.
You can get a pretty good idea about how to set up a job by examining the unit tests in the org.springframework.batch.sample package (in src/main/java) and the configuration in src/main/resources/jobs.
To launch a job from the command line instead of a unit test use the CommandLineJobRunner.main() method (see Javadocs included in that class).
| Back | FazBrowse Home | New Git URL |