on 12-06-2006 2:22 PM
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
Hi Anil,
Why dont you write the files with 'Add time stamp' option on for the file name and then the third party/legacy system to read the files in the order which they were created.?
Another option will be to write these files into a folder with these Add time stamp option/counter option and make a shell script check the folder for the MzOutput.txt file exists in the folder from where the third party/legacy system reads the file and once it has deleted the existing file, then ur files shud be moved in the order in which they were written n the temporary folder.
This will avoid the queue of messages in the adapter engine.
Cheers
JK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.