camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Route removal triggers endpoint shutdown
Date Tue, 28 Apr 2015 18:01:23 GMT
Hi

Yeah if you isolate that code to your own endpoints - then yeah you
wont cause side effects in others.
And then you can do your cleanup code in the shutdown if your endpoint
needs such code.

On Tue, Apr 28, 2015 at 5:02 PM, Atanas Shindov
<atanas.shindov@gmail.com> wrote:
> Hi, Claus,
>
> I saw that the "fix" won't make it into the product. Do you see any risks
> with the workaround below:
>
> // descendant of DefaultEndpoint
>
>     public void stop() throws Exception {
>         if (isSingleton() &&
> !org.apache.camel.support.ServiceSupport.class.cast(getCamelContext()).isStopping())
> {
>             return;
>         }
>
>         super.stop();
>     }
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Route-removal-triggers-endpoint-shutdown-tp5764796p5766437.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Mime
View raw message