You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2013/10/22 12:25:42 UTC

[jira] [Resolved] (CAMEL-6884) onCompletion gets called before completion of stream transfer.

     [ https://issues.apache.org/jira/browse/CAMEL-6884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-6884.
--------------------------------

       Resolution: Not A Problem
    Fix Version/s: 2.13.0
         Assignee: Claus Ibsen

Wprlomg as designed, see answer
http://stackoverflow.com/questions/19494791/apache-camel-using-stream-and-oncompletion

> onCompletion gets called before completion of stream transfer.
> --------------------------------------------------------------
>
>                 Key: CAMEL-6884
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6884
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core, camel-stream
>    Affects Versions: 2.12.1
>         Environment: Mac OS X, Java 7
>            Reporter: Paolo Morandini
>            Assignee: Claus Ibsen
>              Labels: onCompletion, stream
>             Fix For: 2.13.0
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.1#6144)