1 Reply Latest reply on Apr 12, 2012 12:19 AM by Tom Cunningham

    Is there a way to force file gateway to pick up files in a particular order (latest one first)

    jakku reddy Newbie

      I have a file gateway configured in our app which polls and generates ESB messages when files appear on the directory being monitored.

      Sometimes when we are down, files start to accumulate and we need to process the latest ones first. Is there a way to configure file gateway such that it processes the latest files first? If it can be done only with a custom gateway, which class we need to extend and which method to overwrite? Any pointers to such sample code is appreciated much.

      Thank you.