Results 1 to 4 of 4

Thread: Polling and Exception management

  1. #1

    Default Polling and Exception management

    I'm a little confuse by the way exception is handling.

    Say I have a file directory scanning with a poller that handle for instance 1024 files per poll and wait 1 minute between each poll. The next step is for instance to transform the incoming file with an XSLT Transformation. If one file is not well formed then the module throws logically an exception.

    Once the actual exception treated following the given errorChannel, the poller is actually rescheduled, and then wait for a minute not only after 1024 files treated but after each exception.

    What is the de facto solution to let the whole file list being consumed without leaving the current poller execution ?

    Why not simply let the poller be configurable in a way which permit to say if we want to fail fast on any exception (and the rescheduling) or treat the exception and then immediately continue with the current queue ?

  2. #2

    Default

    Forgive me to bump up this Thread. Maybe this is a really dumb question, maybe I'm not clear at all.

    Could someone give me a hint or a clue on this use-case which ensure that a full directory scan for instance is process in a whole even if an exception is throw at any time (eg. transformation of a file).

    Thanks for help

  3. #3
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,853

    Default

    Can you clarify whether you are using the Spring Integration file:inbound-channel-adapter?

  4. #4

    Default

    I currently use a int-ftp:inbound-channel-adapter which delegate to a FileReadingMessageSource if I'm not wrong.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •