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

onCompletion gets called before completion of stream transfer.

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      I noticed that using

      onCompletion().bean(StopRoute(ID));
      from("stream:url?url=...").to("stream:file?fileName=...").routeId(ID);

      the bean StopRoute (which stops and removes the route) gets called before the transfer is complete, actually it gets called in the very beginning of the transfer after a non-predictable number of bytes gets transferred.

      This behavior is not documented, so I think it's possibly a bug.
      Please excuse me if I'm wrong.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            qualsiasi Paolo Morandini
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: