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:

  1. 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 delegated itemreaders.
  2. 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

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -