2013-10-13 28 views
2

工作我有一個使用案例如下:使用Spring Batch的並行執行

1)There is a Parentjob which has multiple child jobs. 
2)All child jobs should be executed in parallel. 
3)The parent job should wait until all child jobs are done. 
4)One child jobs are done control returns to master 
5)Master job is completed. 
6)In case any of the child job throws exception then also control should return to master job 

這可能使用Spring Batch的?

編輯:我不希望並行執行

回答

0

也許這樣的事情在同一母公司的parellel.But多個子作業作業的多個步驟?

  1. 創建工作
  2. 塊微進程添加到這份工作。
    1. 閱讀器上獲得新的工作
    2. 處理器啓動
  3. 運行此塊與任務執行和線程池10個線程。
  4. 利潤! :)