cancel
Showing results for 
Search instead for 
Did you mean: 

file pick up

Former Member
0 Kudos

hi experts,

we have a scenario where we need to pick aparticular number of files from a folder within particular time

EX: we have 20000 messages in source directory . our file adapter should pick avg 300 files from the source directory within 3o min time interval. please help

Accepted Solutions (0)

Answers (2)

Answers (2)

prateek
Active Contributor
0 Kudos

So our thinking matches :). Thats good.

Not much different, but a slight different way could be instead of XI handling the OS commands, configure sender to distribute the file to some intermediate location. This may reduce a bit processing effort of XI (as no of message is too large).

Complexity of mapping and type of reciever may be part of some decision.

Regards,

Prateek

Former Member
0 Kudos

hi prateek,

how to configure the sender to distribute the files? can you please explain clearly

prateek
Active Contributor
0 Kudos

This would be like scheduling some processes on the sender side OS. Like some scheduling tasks of Windows (just an e.g).

Or else if ur FTP Server (if u r using an FTP) supports certain types of small tasks to be performed on the server directly, then it could perform the part of categorizing 300 files.

Regards,

Prateek

prateek
Active Contributor
0 Kudos

I can't think of any direct option as of now.

A workaround could be using OS command, write a script to copy 300 files (based on their last modification date) to an Intermediate folder deleting it from the Original source folder. Now use this script at file sender communication channel. Use polling interval as 30*60 = 1800 secs. And source directory in channel as the Intermediate directory.

Regards,

Prateek

Former Member
0 Kudos

hi Prateek,

Thanks for your reply. we are thinking about the same solution you have mentioned.Also we have 2 days time to solve this problem. Please advice us for the better option if you have any.