cancel
Showing results for 
Search instead for 
Did you mean: 

File Sender without Sender agreement- Possible?

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

created a dummy interface with source and target same

VijayKonam
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

>>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

prateek
Active Contributor
0 Kudos

Actually i tried with dummy message interface

In the sender agreement, tick on checkbox sender uses virtual receiver and try again.

Regards,

Prateek

Former Member
0 Kudos

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

Former Member
0 Kudos

Interesting suggestion but i preferred this just to keep things in control of our interface team. i can surely schedule a batch shell script but then it would be maintained by another team.

regards

rajeev