Announcement Announcement Module
Collapse
No announcement yet.
Synchronous Read Write Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.

    Comment


    • #3
      You are going to need to use the callback from the NetStream read to handle

      Comment

      Working...
      X