• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Spring Batch - processor and writer are repeatedly called

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
one of my steps in a job has a chunk(reader,processor& writer) whose commit-interval is 10 and skip-limit is 200.
Flat file from which the data is read has got 10 records out of which 9 are valid.5th record is invalid.

when reader completes reading 10 records , processor processes the 9 valid records and sends it to writer.
once the writer writes the 9 records to the DB, instead of terminating processor is called for each of the 9 records and then writer.
processor --> writer flow is executed for 9 times like this.

If the Flat file has got all valid records, it executes in the normal way reads 10 records and writes to the DB.

Please suggest me where its going wrong.

Thanks in advance.
 
reply
    Bookmark Topic Watch Topic
  • New Topic