On Wed, Aug 4, 2010 at 12:56 PM, kumaap <[email protected]> wrote: > > Apache Camel 2.4 > > I raised this issue in this forum a awhile back and a Jira was raised and > resolved. > https://issues.apache.org/activemq/browse/CAMEL-2722 > > What im doing is removing routes dynamically > like this > springCamelContext.removeRouteDefinition(name); > > What is happening is the Managed route Mbean is still there which allows the > route to be started again, also if add the same route again the metrics stop > working on that route. >
Shutdown the route first before removing it in 2.4. I am just fixing this in 2.5, together with your autoStartup issue. > Cheers > kumaap > -- > View this message in context: > http://camel.465427.n5.nabble.com/Dynamically-removing-routes-Issue-tp2263912p2263912.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
