You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Atanas Shindov <at...@gmail.com> on 2015/04/28 17:02:33 UTC
Re: Route removal triggers endpoint shutdown
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.
Re: Route removal triggers endpoint shutdown
Posted by Claus Ibsen <cl...@gmail.com>.
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
<at...@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/