Multiple readers in spring batch -
i have requirement implement in spring batch,i need read file , db ,the data needs processed , written email
i have gone through spring batch documentation unable find chunktasklet read data multiple readers
so have read 2 different sources of data(one file , db,each need have own mapper)
regards tar
i see 2 options depending on how data structured:
- spring batch relies heavily on composition when building batch components. 1 option create custom composite
itemreader
delegates other readers (ones spring batch provides or otherwise) , provides logic assemble single object based on results of delegateditemreader
s. - you use
itemreader
provide base information (say database) , use ,itemprocessor
enrich item (say reading file).
either of above normal ways handle type of input scenario.
Comments
Post a Comment