• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Passing the “resources” property value to multiResourceReader from previous step in spring batch

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need to read csv files from a folder and write to DB, also archive the files. Below is the job described in xml

multiResourceReader bean definition

   

The code is working fine, but instead of providing the "resources" property value in xml, i need to get it from "validateFileStep" step, as the reader should read only those csv files which are formatted properly. I should pass the same to archiveFileStep also, so that name the files can be appended with completed or failed in the archive accordingly.

Below is the reader bean def

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic