- Full Description
Since its release, Spring Framework has transformed virtually every aspect of Java development including web applications, security, aspect-oriented programming, persistence, and messaging. Spring Batch, one of its newer additions, now brings the same familiar Spring idioms to batch processing. Spring Batch addresses the needs of any batch process, from the complex calculations performed in the biggest financial institutions to simple data migrations that occur with many software development projects.
Pro Spring Batch is intended to answer three questions:
- What? What is batch processing? What does it entail? What makes it different from the other applications we are developing? What are the challenges inherent in the development of a batch process?
- Why? Why do batch processing? Why cant we just process things as we get them? Why do we do batch processing differently than the web applications that we currently work on?
- How? How to implement a robust, scalable, distributed batch processing system using open-source frameworks
Pro Spring Batch gives concrete examples of how each piece of functionality is used and why it would be used in a real-world application. This includes providing tips that the "school of hard knocks" has taught author Michael Minella during his experience with Spring Batch. Pro Spring Batch includes examples of I/O options that are not mentioned in the official users guide, as well as performance tips on things like how to limit the impact of maintaining the state of your jobs.
The author also walks you through, from end to end, the design and implementation of a batch process based upon a theoretical real-world example. This includes basic project setup, implementation, testing, tuning and scaling for large volumes.
What youll learn
- Batch concepts and how they relate to the Spring Batch framework
- How to use declarative I/O using the Spring Batch readers/writers
- Data integrity techniques used by Spring Batch, including transactions and job state/restartability
- How to scale batch jobs via distributed batch processing
- How to handle testing batch processes (Unit and functional)
Who this book is for
- Java developers with Spring experience.
- Java Architects designing batch solutions
- Table of Contents
Table of Contents
- Batch and Spring
- Spring Batch 101
- Sample Job
- Understanding Jobs and Steps
- Job Repository and Metadata
- Running a Job
- Item Processors
- Item Writers
- Sample Application
- Scaling and Tuning
- Testing Batch Processes
- Source Code/Downloads
If you think that you've found an error in this book, please let us know by emailing to firstname.lastname@example.org . You will find any confirmed erratum below, so you can check if your concern has already been addressed.On page 9:The PDF edition does not show the image for Figure 1-4. I'm using Preview on Mac OS X Snow Leopard, and I have double-checked with a fresh download on another Mac. Figure 1-4 is just the first occurrence. Figures 3-1, 3-2 and 3-4 are also missing, as are parts of Figure 4-1 and all of Figures 5-3, 5-4, 5-5, 6-2, 6-3, 6-4, 6-5, 6-6, 6-7, 6-8, much of 6-9, all of 6-10, 6-11, 7-4, 8-1, 9-8,10-2, 10-3, 11-1, 11-2, 11-3, part of 11-4, all of 11-5, 11-7, 11-8, 11-9, 11-10, 11-13, and 11-17.Author Comment:
On page 22:Command java -jar hello-world-0.0.1-SNAPSHOT.jar jobs/helloWorld.xml helloWorldJob will throw this error:
Exception in thread "main" java.lang.NullPointerException
at sun.launcher.LauncherHelper.getMainClassFromJar(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Tried even packiing a jar with the official source code downloaded from this page, with no luck.
On page 438:
Figure 11-19 refers to "StepRequestExecutionHandler", the class is actually "StepExecutionRequestHandler"