Results 1 to 3 of 3

Thread: spring batch standard utility step merge

  1. #1
    Join Date
    Jun 2011
    Posts
    3

    Default 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. #2
    Join Date
    Sep 2008
    Location
    Chicagoland, IL
    Posts
    351

    Default

    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).
    Michael Minella
    Spring Batch Lead
    Author - Pro Spring Batch
    http://www.michaelminella.com
    Twitter: @MichaelMinella

  3. #3
    Join Date
    Aug 2012
    Posts
    3

    Default

    understand what different steps of the batch process are about and how they transition.
    My first initiative here is to explain what Insanity is. Once you get the feel for it the customer insanity reviews will make more sense.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •