1 / 7

Spring-Batch Tutorial

Spring-Batch Tutorial. Getting Started Guide. Agenda. Software prerequisites Creating new batch application Setting up database Running a job. Prerequisites. JDK 1.4 or later Maven 2. Create a batch application. Use the spring-batch-app archetype mvn archetype:create

Télécharger la présentation

Spring-Batch Tutorial

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Spring-Batch Tutorial Getting Started Guide

  2. Agenda • Software prerequisites • Creating new batch application • Setting up database • Running a job

  3. Prerequisites • JDK 1.4 or later • Maven 2

  4. Create a batch application • Use the spring-batch-app archetype mvn archetype:create -DarchetypeGroupId=org.springframework.batch -DarchetypeArtifactId=spring-batch-app -DarchetypeVersion=1.0-SNAPSHOT -DgroupId=org.myorganization -DartifactId=my-app-name

  5. Setup the database • Create a schema using SQL script from/src/main/resources/db-schema-scripts • Edit JDBC connection properties in/src/main/resource/batch-jdbc.properties

  6. Run a job • cd path/to/my-app-name • mvn test • mvn exec:exec

  7. Look behind the curtains • src/main/resources/helloWorldJob.xml contains the job configuration • pom.xml contains the maven’s exec plugin configuration which launches the job with appropriately configured classpath

More Related