java - File processing on two different machine using spring batch -


my file processing scenario ,

 read input file -> process -> generated output file 

but have 2 physically different machines connected 1 storage area receive input files , 1 database server,there 2 application servers running on these machine(1 on each server).

enter image description here

so how can use spring batch process input files on both these application server parallelly ? mean if there 10 files 5 on server1 (p1) , 5 on (p2) ,can done ?

you schedule job per input file (input file location parameter of job). spring batch guarantee no 2 job instances same job parameters created. you'll jobexecutionalreadyrunningexception or jobinstancealreadycompleteexception if other node has started processing same file.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -