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.shin...@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: cib...@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/