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

improve the stream:file to be able to auto close when it detects the splitter is done

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.10.4
    • 2.11.0
    • camel-stream
    • None
    • Unknown

    Description

      We should improve the stream:file to be able to auto close when it
      detects the splitter is done, as we have a completed property on the
      exchange to tell us.

      We can add an option on stream:file like closeOnDone=true

      Like in this example :

      from("file://C:/Temp/camel/input_test/?noop=true")
      .split()
      .tokenize("\n")
      // Business lock with possible reject / enrich etc ...
      .streaming()
      .to("stream:file?fileName=C:/Temp/camel/output_test/out.csv&closeOnDone=true")
      .end()
      .end();

      Attachments

        Activity

          People

            njiang Willem Jiang
            0jeff0 jeff
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: