Results 1 to 5 of 5

Thread: Accessing raw data from read flat files...

  1. #1
    Join Date
    Nov 2011
    Location
    Charlotte, NC, USA
    Posts
    21

    Default Accessing raw data from read flat files...

    I have a batch process that uses chunk processing; it reads a flat file, and processes/writes a DTO to a Spring Integration channel.

    I would like to be able to log raw line(s) from the flat file should they cause subsequent errors in processing downstream.

    I am thinking of possibly extending PatternMatchingCompositeLineMapper to handle storing this raw information into my DTO, but I wanted to check if their was an easier way of doing this.

    Chris

  2. #2

    Default

    I think you are going to need to create a custom LineMapper and log then raw line in the mapLine method. If you don't like the idea of extending an existing line mapper, your custom LineMapper can just delegate to whatever LineMapper you are using. That way your delegate can be any LineMapper instance.

  3. #3
    Join Date
    Nov 2011
    Location
    Charlotte, NC, USA
    Posts
    21

    Default

    Yep - extending the lineMapper is the route I'm going.

    I've only been using SB for a few weeks but I'm liking it a lot. Am finding that most of my time has gone from writing tedious batch code to learning how to configure the various facets of SB.

    Chrisj

  4. #4

    Default

    I agree. I am in the middle of a project to move off the mainframe and Spring Batch is a key part of that.

  5. #5

    Default

    I think you are going to need to create a custom Line Mapper and log then raw line in the map Line method. this idea suits it i think so

Posting Permissions

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