Results 1 to 3 of 3

Thread: Dynamic fields in ItemFileReader

  1. #1
    Join Date
    Apr 2008
    Posts
    15

    Default Dynamic fields in ItemFileReader

    Hi,

    I am updating a batch application that I want to port Spring Batch. At the moment when a file is processed the required fields in the file and the location of the files are downloaded from a database. There can be up to 85 fields in a file. The system was designed this way to allow users to quickly process new files.

    Also the field delimeters are held in the database and string delimeters can be specified. For example if the field delimeter is ; and the string delimeter is " then this row:

    1234;"test;123";blah

    Should have these values:

    1234
    test;123
    blah

    Is it possible to handle these requirements in Spring Batch?

    Thanks

    JIM

  2. #2

    Default

    when a file is processed the required fields in the file and the location of the files are downloaded from a database
    should be possible, in Spring Batch semantics you would need something like:




    *through the JobContext configuration data
    ** one can keep the reader "dumb" and move tokenization/transformation to a processor, Spring Batch is quite flexible this way
    Last edited by michael.lange; Sep 19th, 2011 at 06:10 AM. Reason: bad language skills

  3. #3
    Join Date
    Apr 2008
    Posts
    15

    Default

    Thanks Michael.

Posting Permissions

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