I think some of the JMX stuff is unregistered when CamelContext shuts down. And hence why you still see some of it in jconsole.
For example you may stop / start routes on the fly and thus Camel only unregister routes when it's shutdown. On Fri, Jul 16, 2010 at 10:31 PM, gnanda1 <[email protected]> wrote: > > Could someone please suggest how to remove a route from a camel context > programatically. > > I am using the below code to do it. But not sure if it is working as > expected. I could still see the route from the jconsole. > > List<RouteDefinition> list = new ArrayList<RouteDefinition>(); > list.add(routedefinition); > camelContext.removeRouteDefinitions(list); > > Any help is appreciated. > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Stopping-and-removing-a-route-programmatically-tp1223859p1235000.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
