-
Aug 5th, 2008, 09:42 AM
#1
MultipleResourceItemReader variation
I have next situation:
A number of servers produce every day some output-files. The files on each server have the same name. In each file, the first record indicates the date. When a server was not available, there is no output-file for that date, but the previous output-file is still there.
In a batch job, I want to process all these files on every server which have as first record the current date.
Can someone give me a hint on how I can implement this?
-
Aug 5th, 2008, 02:07 PM
#2
Can I use an MultiResourceItemReader where a Bean that returns the files on each server will be injected as a Resources-property.
The Bean that injects the resources will look for the files and also checks the first record if it maches current date.
Is this the good approach?
The problem I still have:
If I want to write the lines from the files to a db where one of the columns is the name of the server, how can I obtain the name of the server.
In other words: Is there a way in the ItemWriter to find from which resource a line is read in the MultiResourceItemReader.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules