Announcement Announcement Module
Collapse
No announcement yet.
Threadpool using tasklet Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Threadpool using tasklet

    I was trying to execute the two class parallel using task executor in spring. Below was my sample .xml file. I was able to execute the two java class parallel.

    <job id="helloWorldJob" job-repository="jobRepository" >
    <split id="split1" task-executor="taskExecutor">
    <flow>
    <step id="step1">
    <tasklet ref="helloWorldTasklet1" />
    </step>
    </flow>
    <flow>
    <step id="step2">
    <tasklet ref="helloWorldTasklet2" />
    </step>
    </flow>

    </split>

    </job>

    <beans:bean name="helloWorldTasklet1" class="com.test.HelloWorldTasklet1"/>
    <beans:bean name="helloWorldTasklet2" class="com.test.HelloWorldTasklet2"/>

    Now I have scenario where I need to execute two more java class parallel once the step “step1” and “step2” is completed. I am not able to find a good example for it .

    Please help me in this.

    Regards,
    Kalai
Working...
X