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

Thread: TaskExecutor Transaction Management

  1. #11

    Default

    There are also a number of other partitioning strategies and approaches that are documented within the "4.1 Partitioning Approaches" section of the Batch Processing Strategies page that can be found at: http://static.springframework.org/sp...trategies.html.

  2. #12

    Default Trying to answer your question

    Hi ballsuen,

    I will try to answer your first question. How do you have configured the StepExecutor? We are using the SimpleStepExecutor and setting the StepOperations to a TaskExecutorRepeatTemplate to achieve multi-threading (same VM, though). This class will create the threads for you and run the ChunkOperations in each configured Thread. So it seems that you should try to add the transaction handling aspect to the RepeatTemplate assigned to the ChunkOperations.

    Was that the approach that you tried and did not work?

    Still, I do not know how to do partitioning (we are processing files, so have synchronized the 'next()' of the next file in the ItemProvider which works for all the threads in the same VM).

    Hope this helps.
    Regards
    Andres B.

Posting Permissions

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