Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 1.16 KB

README.md

File metadata and controls

34 lines (19 loc) · 1.16 KB

Spring Batch Integration Sample

This is a sample for the Spring Batch Integration project.

The sample is based on the sample create for the book Spring Integration in Action. You can find that sample at:

Objective

This sample uses Spring Batch Integration to more easily use Spring Batch and Spring Integration together. The application will poll a directory for a file that contains 27 payment records. Spring Batch will subsequently process those payments.

Running the Sample

You can run the application by either

  • running the "Main" class from within STS (Right-click on Main class --> Run As --> Java Application)

  • or from the command line:

    $ mvn package $ mvn exec:java

Or via one line:

$ mvn clean package exec:java

As a result the final console output should be:

DONE!!
exitStatus: COMPLETED; imported # of payments: 27