Skip to Content
avatar image
Former Member

file pick up

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Aug 01, 2008 at 10:05 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • Aug 01, 2008 at 10:56 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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