Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-1670

thread() and File Components

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-M1
    • 2.0-M2
    • camel-core
    • None
    • Microsoft Windows XP

    Description

      I just experimented with adding calls to thread(10) to my route to make it multithreaded. This definitely speeds up by route, but it keeps throwing java.nio.channels.OverlappingFileLockException errors and leaving lock files behind it. The start of my route looks like

      from("file:
      startDirectory?move=endDirectory")
      .threads(10)
      .bean("myBean", "myMethod")

      Afterwards, my route ran successfully but an OverlappingFileLockException was thrown for every file that was read and all the lock files were left in my source directory.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            joegottman Joe Gottman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: