Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 62069 invoked from network); 4 Aug 2010 11:41:31 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Aug 2010 11:41:31 -0000 Received: (qmail 31513 invoked by uid 500); 4 Aug 2010 11:41:31 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 31243 invoked by uid 500); 4 Aug 2010 11:41:29 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 31235 invoked by uid 99); 4 Aug 2010 11:41:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Aug 2010 11:41:27 +0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.216.45 as permitted sender) Received: from [209.85.216.45] (HELO mail-qw0-f45.google.com) (209.85.216.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Aug 2010 11:41:21 +0000 Received: by qwf6 with SMTP id 6so760879qwf.32 for ; Wed, 04 Aug 2010 04:41:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=Rc/vyeMp8lqgj4kXOkelcSr19nMNCcsElFv0Bccxm+c=; b=b54L3AYaYEAvfkv7u4hXbNpwLJv5at3BrxVLO7CqUMRUvE/IDqf8QJzI+vYngscraB 8/UbAetL07f1rb/CGPxLFNJhC+313/XHSSRzG9rLV34CP8NJgS33Mu/97cWKRBuI+31t MkEr5F2pzeo9g27tUri60knvLwI2UQpmOdfkc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=vAulpy0GV8CISwv0yXB75WNDVUC6UrFSmt5J+SZU0Mf6+0seKObfIlXtZt2ZiomUIQ xJ84R5QZpSzXKcduBdm/5Y3d3eImv1SHxveDIcuQ1A1g18pRHpfB927CCQEVoDFdTnI8 Zxs5Izra0/62Xuk5IjBjyRMtbVD+Df3ZWFV64= Received: by 10.224.78.93 with SMTP id j29mr3698257qak.254.1280922060771; Wed, 04 Aug 2010 04:41:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.223.195 with HTTP; Wed, 4 Aug 2010 04:40:40 -0700 (PDT) In-Reply-To: <1280919393718-2263912.post@n5.nabble.com> References: <1280919393718-2263912.post@n5.nabble.com> From: Claus Ibsen Date: Wed, 4 Aug 2010 13:40:40 +0200 Message-ID: Subject: Re: Dynamically removing routes Issue To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Aug 4, 2010 at 12:56 PM, kumaap 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