on 06-08-2009 7:24 AM
Hi,
There is a requirement to check certain files and move them to certain directories in a FTP server from PI on checking the payload of an outbound interface which is using FTP adapter. The question is whether it is advisable to open the FTP connection from Java mapping in PI and do the file processing as required or it should be done by an adapter module?
Any help will be highly appreciated.
Thanks,
Dipankar
>>payload of an outbound interface which is using FTP adapter
why not do this via "Conditional Interface determination"
That is the standards way through which we branch off message based upon the contents of payload,you can also use "Conditional receiver determination" if you have different receiver systems.
Please update the thread if your requirement is different.
Thanks
Aamir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It would be better to go with Adapter Module.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you implement in mapping, there can a possibility of more than one transaction on FTP server in case of mapping failure( as you will resend the failed message). Also the performance gets degraded as mapping is part of PIPELINE steps.
If you do it in the module level, you can better manage FTP connections and operations.
Thanks,
- Gujjeti.
Hi,
The requirement is the input message to PI is a file from the FTP server which is picked up by the FTP sender adapter in PI. After picking it up it has to be determined whether it's ready for processing by checking certain files present in the FTP server. These config files are separate files and are not available in the PI payload. Also a log file has to be written to the FTP server with the processing information and validation results during the message processing in PI and if the payload file is finally processed it has to be archived in a specific folder in the FTP server. I know these are not the usual functionality to be expected from a middleware but in this case it has to be implemented by PI only. So as there'll be number of FIle I/O operations during the process I like to clarify which one will be the best option to do this - adapter module or Java Mapping or if there are any other alternatives.
Thanks,
Dipankar
poll the FTP server and get the files on which you need to perform the check into XI....check if they have some data....if yes discard them (i.e. do not do any further processing on them) and start the processing of your main file...if no data present then stop the processing of the main file....if possible check the feasibility of using a BPM to perform the check.....
No idea if it can be done by other methods
Regards,
Abhishek.
As per my understanding of the requirement below,.,
Pick up all the files from the server, run it through a module to do your validation for the config files etc, remember to close all connections if you open any, else it can cause ur JCO pool to overload.
Run it through a BPM, get a response, write the results etc to a file.
keep all the IO inside the module.
If you need further specifics or any help on the module do let me know.
Regards
Ravi Raman
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.