on 07-09-2016 1:56 AM
Hi All,
We've set a 50MB file size limit in all our File Sender Communication Channels. Files with 50MB or greater than will not be picked up by the channels.
We wanted to check if there are ways on how we can automatically remove/move the file from the source directory to a different directory/folder so that this will not block other messages from being processed.
Our PI is running in Unix.
Let us know your thoughts on this.
Thanks,
Hirobyn
Hi Evgeniy,
How did you configure your Sender File CC to ensure that it will pick files of less than 50 MB only. Did you use modification check or what.
If you have used OS command to do that in before processing section then you can add logic to delete or archice file in different location when file size is >= 50 MB. But OS command will work only for NFS.
Second option is you can write some custom adapter module to do that.
Third option, write some standalone java program/ shell script and schedule it separately as per your requirement which will periodically check the files of the folder and delete/archive >=50 MB files.
Thanks,
Apu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Apu,
Thanks for your input!
We've set the 50MB file size limit on the advance parameter.
There's a total of 136 file sender comm channels with different source directory. Based on the given options, what could be applicable and feasible on the scenario that we had.
Let us know your thoughts.
Cheers,
Hirobyn
Hi Hirobyn,
From where are you trying to poll the files. If it is from NFS then only you can opt from OS command. If it is from FTP/SFTP then OS command will not work and you can go for custom adapter module.
There is another option - You can put an routing condition using Context object Source File Size in Receiver Determination -
Thanks,
Apu
Hi Apu,
Files were polled or picked up in the Unix source directory.
Just a quick question, since files greater than 50MB will not be polled by the comm channel and will stay in the Unix source directory. Will this block other smaller messages that passed through the same comm channel from being processed?
Thanks,
Hirobyn
Hi Hirobyn!
Try to use option "OS command after file processing" in your file sender adapter for that.
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
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.