Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: How to loop on a step ?

  1. #11
    Join Date
    Feb 2008
    Posts
    488

    Default

    You should be able to use an asynchronous task executor to run them in parallel.

  2. #12
    Join Date
    Feb 2009
    Location
    Paris
    Posts
    30

    Default

    Ok, that's great !

    Last question (I hope ). If I understand, I have two create two jobs.
    The first one will be the one launched by the JobLauncher during the loop.
    The second one will be the one called in command line for launching the process. Am I right ?

    Then, the second job will do nothing I guess as everything will be done in the JobLauncher et the other jobs.
    So, does SpringBatch allows me to create an empty job such as:
    Code:
    <batch:job id="myEmptyJob" />
    
    <batch:job id="myUsefulJob">
       <batch:step id="myStep">
       ...
       </batch:step>
    </batch:job>

Posting Permissions

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