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

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

Paolo Morandini created CAMEL-6884:
--------------------------------------

             Summary: 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


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)