From the course: Spring: Spring Batch

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

ItemReader

ItemReader

From the course: Spring: Spring Batch

Start my 1-month free trial

ItemReader

- [Instructor] Chunked-based processing requires data to be read as items into a batch job for processing. To achieve this, we use an ItemReader. Spring Batch provides an ItemReader interface with a single method named read. Implementations of the ItemReader interface retrieve data from a data store one item at a time for processing within the batch job. The framework provides several out-of-the-box implementations for reading from common data stores such as databases, files, and message queues. This alleviates the need for developers to write logic focused on pulling data from these sources for a batch job. Instead, we just configure one of the out-of-the-box ItemReaders. Let's take a look at some of the ItemReaders that the framework provides. Here's a list of those ItemReaders that are available within the framework that we can use to consume items from different data sources. When leveraging these ItemReaders, we'll…

Contents