on 10-15-2008 10:34 PM
Hello
It may seems bit unusual but i am having requirement in which the file sender adapter is expected to trigger the OS level command in which it gets the file from SSH server in the XI polling directory and then XI File adapter would pick up that file.
Now it has been observed that, XI File adapter doesn't execute OS level command in its poll cycle unless it creates message which means XI would expect some file (atleast a dummy file) in its polling directory.
Since this is not possible, we thought of creating the second adapter which will poll the dummy file of say 0 KB and call the OS level command which will get the files from SSH server and then the second adapter would poll the actual file.
Since second adapter would serve just as the trigger channel, its not expected to have any sender interface associated with it and hence it should poll the file without any sender agreement. can this be possible?
thanks in advance.
regards
rajeev
created a dummy interface with source and target same
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Mmm.. Once you activate, it does take the empty file. In rwb you will have an error saying that no suitable sender agreement found. I am not sure if the OS command is still executed even if there is an error. You can try that for sure.
I am not clear but, I rememeber I read that, in one of the latest SPs on 7.0, the File adapter can be set up to execute OS command before and after file processing also. May be you might want to check the lates documentation.
VJ
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Actually i tried that earlier but it didn't help.
It does executes command before or after but that only when it creates a message and it doesn't create message unless we have suitable sender agreement.
Actually i tried with dummy message interface (without actual message interface in IR) and that works but it fails in MONI and generates the error message as no suitable receiver found which i wanted to avoid.
Thanks and Regards
Rajeev Patkie
>>generates the error message as no suitable receiver found which i wanted to avoid
When you are using dummy interface(By-Pass scenario)you need to make sure that you are using the same namespace and same interface for both sender and receiver.
Could you please confirm that you are using the same for both sender and receiver.
Thanx
Aamir
Hi Rajeev,
Interesting thoughts and ideas. But something I don't understand, even if you are using an alternate file channel to poll a dummy file from the same source directory, the channel will keep polling the file in regular interval in test mode. So in any sense the Sftp pull from your SSH server doesn't seem to be event driven. In that case why don't you simply use a script running at regular interval pulling the file from SSH server? Why is the requirement to execute the OS command from a file adapter only?
Regards,
Suddha
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.