Results 1 to 2 of 2

Thread: FaultTolerantChunkProcessor problem

  1. #1
    Join Date
    Nov 2010
    Posts
    20

    Default FaultTolerantChunkProcessor problem

    I still have a problem with this class.

    I basically read in data, validate and write it as XML.

    What I want is the following :

    On ValidationException I get a Skip and a log message through my StepExcecutionListener on process, no matter if my chunk of lets say 15 is allright or all 15 throw a ValdationException.



    This is my first problem if all data in my chunk are faulty I get NO message, the Listener is NOT called.

    If I set the ValidationException as a <no-rollback-exception-class> for the tasklet I get my message BUT EVERY faulty item is counted twice as Filter and SkipOnProcess, which is wrong and messes up the Count for this batch.



    How can I achive what I want? I tried countless ways and nothing helped me out of this mess.

    Ideas anyone, pls?

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

    Default

    Can you post your configuration?
    Michael Minella
    Spring Batch Lead
    Author - Pro Spring Batch
    http://www.michaelminella.com
    Twitter: @MichaelMinella

Posting Permissions

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