Results 1 to 3 of 3

Thread: Synchronous Read Write

  1. #1

    Post Synchronous Read Write

    Hi there,

    I would like to know if there any way in Spring batch world to keep the Reader to wait for the outcome of write method of the read record.

    Here is the sequence
    1. Read
    2. Write
    3. Wait for outcome of Write
    4. Read
    ...
    ...

    Can any one answer? Thanks in advance.

    Regards,
    Rajesh

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

    Default

    Set your commit-interval to 1. Assuming you don't use any type of asynchronous processing in your ItemWriter, it will wait for the first item to be written before executing the next read.
    Michael Minella
    Spring Batch Lead
    Author - Pro Spring Batch
    http://www.michaelminella.com
    Twitter: @MichaelMinella

  3. #3
    Join Date
    Aug 2012
    Posts
    3

    Default

    You are going to need to use the callback from the NetStream read to handle
    My first initiative here is to explain what Insanity is. Once you get the feel for it the customer insanity reviews will make more sense.

Posting Permissions

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