Hi,
I have a requirement in which OSB has to read a file from FTP server. The File Size can be up to 100mb.
Problem : When the third party system which is EdiFecs here, writing the File ,OSB is also polling on the directory. There are very good chances of OSB picking the incomplete file. So how can we get rid of this situation.
My Thoughts :
1) JCA Approach : We can create a JCA with the minimum file age option in Jdev and that can be imported in OSB by creating Business Service. So that way OSB will not read the file till that minimum age.
2) While going through some documents, its mentioned that whenever OSB finds a file in the location, first it will try to rename the file (.stage probably) and place it in to Stage directory then starts processing. So is it correct to say that if OSB not able to rename the file because the other system is still writing it then OSB will not read the file and will try again until it is able to read the file or it will throw error like "Couldn't able to rename the file".
Please suggest which approach is better or any new approach.
Thanks,
Ankit