Announcement Announcement Module
Collapse
No announcement yet.
Clubbing two resources Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Clubbing two resources

    Hi,

    My reader should read from two folders. So in the xml i have the below configuration
    <property name="resourcePatternEdi" value="file:${ofp.baseFileSystemPath}/input/invoice/edi/*.txt"/>
    <property name="resourcePatternFlat" value="file:${ofp.baseFileSystemPath}/input/invoice/flat/*.txt"/>

    My rader is extending MultiResourceItemReader. I am getting all the files from both the locations in my beforeStep(StepExecution se) method.

    Resource[] ediResources = resourcePatternResolver.getResources(resourcePatte rnEdi);
    Resource[] flatResources = resourcePatternResolver.getResources(resourcePatte rnFlat);


    Now i want to club both the resources to call the method this.SetResource. But unable to club both the resource list. Can anybody help me?

    Thanks in advance,
    Giridhar
Working...
X