Announcement Announcement Module
No announcement yet.
spring batch standard utility step merge Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • spring batch standard utility step merge


    I have a need of merging multiple records (from DB) to single output record and write (to DB to another table). mentions that


    In addition to the main building blocks, each application may use one or more of standard utility steps, such as:


    Merge - A program that reads records from multiple input files and produces one output file with combined data from the input files. Merges can be tailored or performed by parameter-driven standard system utilities.

    How ever I have not found any such utilities. Does such off-the-shelf utility exists?
    If not has anyone done similar?


    Muneer Ahmed

  • #2
    There isn't anything "off-the-shelf" for this functionality but there are things you can use "off-the-shelf" to create this type of functionality. Specifically, let's say you are reading input from both a flat file and a database to create an item, you can create your own composite ItemReader implementation that uses the FlatFileItemReader and one of the JDBC based ItemReaders to do the actual work (your composite ItemReader would delegate the reading to the other ItemReaders and assemble the results appropriately).


    • #3
      understand what different steps of the batch process are about and how they transition.