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).
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
Post a Comment