Get current resource name using MultiResourceItemReader Spring batch
There is a specific interface for this problem called ResourceAware: it's purpouse is to inject current resource into objects read from a MultiResourceItemReader
.
Check this thread for further information.