MultiResourceItemReader does not read files added to a folder after initialization
Hi,
I've a job which processes log files one by one from a folder i.e. *.log
However, what I've observed is that MultiResourceItemReader builds list of files from this location at application startup. So, if at startup there are no files but added at a later time, it doesn't read those files.
Code:
<bean id="multiResourceItemReader" class="org.springframework.batch.item.file.MultiResourceItemReader">
<property name="resources" ref="logfileLocation" />
.....
</bean>
Is this is by design or am I missing something?