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

  • spring batch standard utility step merge

    Hi,

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

    http://static.springsource.org/sprin...trategies.html 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?

    Thanks,

    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).

    Comment


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

      Comment

      Working...
      X