Hi All,
I´m using a File Receiver Adapter to write flat files on to an FTP. Same Communication Channel is used for all types of output files (As per the business requirement the file name(
MzOutput.txt
) shud b same for Deliverz orders, Purchase orders etc...). The receiver legacz szstem reads one file at atime and deletes it. So if i´m writing a Deliverz Order File, i have to wait until the fileMzOutput.txt
gets deleted and then i have to write the next file using the same name. in order to acheive this, i had used a module processor which waits until thatMzOutput.txt
gets deleted. Mz problem isMzOutput.txt
gets deleted, then two threads which check for the existance of theMzOutput.txt
file finds nothing and tries to write at same time. as a result, first file got overwritten by the second file.OverwriteExisting File
in the CC configuration.If i use two different CC channels to write the same file, it is giving FTP Exception which is true.
I´m loosing few deliveries as a result of the above case. Can anzone please help me out in this regard?
Thnx in Advance
Anil