Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2ECD7E54A for ; Mon, 17 Dec 2012 20:16:14 +0000 (UTC) Received: (qmail 74047 invoked by uid 500); 17 Dec 2012 20:16:13 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 73997 invoked by uid 500); 17 Dec 2012 20:16:13 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 73768 invoked by uid 99); 17 Dec 2012 20:16:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Dec 2012 20:16:13 +0000 Date: Mon, 17 Dec 2012 20:16:13 +0000 (UTC) From: "Gennadiy Bukhmatov (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAMEL-5888) When call removeRouteDefinition the route doesn't removed from collection of route Definitions. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-5888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gennadiy Bukhmatov updated CAMEL-5888: -------------------------------------- Description: When I call removeRouteDefinition for DefaultCamelContext, the route doesn't removed from collection of routes. public synchronized void removeRouteDefinition(RouteDefinition routeDefinition) throws Exception { String id = routeDefinition.idOrCreate(nodeIdFactory); stopRoute(id); removeRoute(id); } it is just remove it from running route service if context is running. When we do restart context this route started again. Workaround for this issue is call removeRouteDefinitions and wrap single route into collection. But when I call removeRouteDefinitions - it is process correctly: remove from collections of definitions and after removed from running route services. public synchronized void removeRouteDefinitions(Collection routeDefinitions) throws Exception { this.routeDefinitions.removeAll(routeDefinitions); for (RouteDefinition routeDefinition : routeDefinitions) { removeRouteDefinition(routeDefinition); } } was: When I call removeRouteDefinition for DefaultCamelContext, the route doesn't removed from collection of routes. public synchronized void removeRouteDefinition(RouteDefinition routeDefinition) throws Exception { String id = routeDefinition.idOrCreate(nodeIdFactory); stopRoute(id); removeRoute(id); } it is just remove it from running route service if context is running. But when I call removeRouteDefinitions - it is process correctly: remove from collections of definitions and after removed from running route services. public synchronized void removeRouteDefinitions(Collection routeDefinitions) throws Exception { this.routeDefinitions.removeAll(routeDefinitions); for (RouteDefinition routeDefinition : routeDefinitions) { removeRouteDefinition(routeDefinition); } } Summary: When call removeRouteDefinition the route doesn't removed from collection of route Definitions. (was: When call removeRouteDefinition the route doesn't removed from collection of removeRouteDefinitions) > When call removeRouteDefinition the route doesn't removed from collection of route Definitions. > ----------------------------------------------------------------------------------------------- > > Key: CAMEL-5888 > URL: https://issues.apache.org/jira/browse/CAMEL-5888 > Project: Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.10.2 > Reporter: Gennadiy Bukhmatov > > When I call removeRouteDefinition for DefaultCamelContext, the route doesn't removed from collection of routes. > public synchronized void removeRouteDefinition(RouteDefinition routeDefinition) throws Exception { > String id = routeDefinition.idOrCreate(nodeIdFactory); > stopRoute(id); > removeRoute(id); > } > it is just remove it from running route service if context is running. > When we do restart context this route started again. > Workaround for this issue is call removeRouteDefinitions and wrap single route into collection. > But when I call removeRouteDefinitions - it is process correctly: remove from collections of definitions and after removed from running route services. > public synchronized void removeRouteDefinitions(Collection routeDefinitions) throws Exception { > this.routeDefinitions.removeAll(routeDefinitions); > for (RouteDefinition routeDefinition : routeDefinitions) { > removeRouteDefinition(routeDefinition); > } > } > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira