Seperate datasource for jobrepository and writer of Spring Batch

前端 未结 1 743
独厮守ぢ
独厮守ぢ 2020-12-21 17:39

Job is simple CSVtoDBFileWriter :

  1. read CSV fileName and location from oracle1
  2. read CSV file(batchreader)
  3. write(batch writer) in tables(ora
相关标签:
1条回答
  • 2020-12-21 18:19

    You only need XA transaction when SB metadata tables are stored in a different database than the one using for data writing because checkpoint (data and SB metadata) must be stored at the same time to take care of synchronization and restartability.
    Reading can be done from a different datasource without problems because reading is unrelated respect to where SB metadata are saved.

    0 讨论(0)
提交回复
热议问题