You can try using the streamDownload option so the ftp file is not
fully downloaded up-front.

On Fri, Sep 23, 2016 at 11:30 AM, Christian Damsgaard
<[email protected]> wrote:
> Is it possible to receive an event before an endpoint starts receiving the
> body?
>
> The implementation of org.apache.camel.spi.EventNotifier does not provide
> this information.
>
> The use case is that we are receiving 100 mb. file from a slow FTP server -
> it takes about 10 minutes - and we are not able to shut down the camel
> context when this transfer is in progress. We have a custom socket factory
> which we use to monitors the traffic on the sockets created. The plan is
> that when we receive a context shutdown event we will wait for a short while
> and then disconnect any remaining open sockets which will make the FTP
> download fail. But we would for our own dashboard and statistic like to know
> that a transfer has started.
>
> Thanks
> Christian
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Event-notification-before-endpoint-starting-retrieving-tp5787952.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to