Results 1 to 3 of 3

Thread: Infinite loop customreader-processor-customWriter

Hybrid View

  1. #1
    Join Date
    Mar 2012
    Posts
    21

    Default Infinite loop customreader-processor-customWriter

    Hi , I am new to spring batch ..., i am able to read data process it and write to file but this is happening for infinite times how to stop it where i m missin logic ...please help me out..thanks in advance..

  2. #2
    Join Date
    Sep 2008
    Location
    Chicagoland, IL
    Posts
    348

    Default

    Does your ItemReader ever return null? If it doesn't, it will process for ever. Returning null is the signal to the step that the input has been exhausted.
    Michael Minella
    Spring Batch Lead
    Author - Pro Spring Batch
    http://www.michaelminella.com
    Twitter: @MichaelMinella

  3. #3
    Join Date
    Mar 2012
    Posts
    21

    Default

    thanks mminella, i missed returning null..its working fine now

Posting Permissions

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