Results 1 to 2 of 2

Thread: Infinite Skip Limit

  1. #1

    Default Infinite Skip Limit

    Hi All,
    We have business scenario like, if any business exception occurs, the current item need to rollback and continue with the next item. We don't know how many items will come at runtime so skip limit set to some 100 is not appropriate.

    If all the records throw business exception, our batch need to skip all the items and completes successfully.

    How to handle this?
    Thanks for your reply in advance.
    Thanks & Regards,
    Arun Duraisamy

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,695

    Default

    Configure a different SkipPolicy instead of the LimitCheckigItemSkipPolicy (which is what is configured when you set the skip-limit). See the javadoc/classes for the implementations.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

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