Stopping a route should not stop context scoped error handler
-------------------------------------------------------------
Key: CAMEL-3878
URL: https://issues.apache.org/jira/browse/CAMEL-3878
Project: Camel
Issue Type: Bug
Components: camel-core
Reporter: Claus Ibsen
Assignee: Claus Ibsen
Fix For: 2.8.0
When stopping a route using .stopRoute from CamelContext or JMX etc. then the
error handler should not be stopped if its a context scoped error handler, as
it would be re-used.
We should defer stopping those resources till Camel is shutting down.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira