Hi Indra,
There is a problem with java mapping approach which you mentioned above.
Let's for eg. The file processed on Wed, Thu, Fri with time stamps and there are no files processed on sat & sun.
Due to some reasons the channel is not run till Monday, when we re executed this, then this approach will fail as mapping check for the yesterday's date and compares. We faced a similar problem earlier.
We resolved this using a .bat file which executes before mapping, when file adapter picks up the file.
I do not remember exactly how we have written the .bat, but It will be possible with windows bat file.
Regards,
Nagesh