Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D1ECE18DF2 for ; Fri, 13 Nov 2015 17:02:06 +0000 (UTC) Received: (qmail 96039 invoked by uid 500); 13 Nov 2015 17:02:01 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 95993 invoked by uid 500); 13 Nov 2015 17:02:01 -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 95957 invoked by uid 99); 13 Nov 2015 17:02:01 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Nov 2015 17:02:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id B5245C14AE for ; Fri, 13 Nov 2015 17:02:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.1 X-Spam-Level: X-Spam-Status: No, score=-0.1 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 2lIvO_YjtlFp for ; Fri, 13 Nov 2015 17:01:48 +0000 (UTC) Received: from mail-io0-f171.google.com (mail-io0-f171.google.com [209.85.223.171]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 5CBD920270 for ; Fri, 13 Nov 2015 17:01:48 +0000 (UTC) Received: by iofh3 with SMTP id h3so103533061iof.3 for ; Fri, 13 Nov 2015 09:01:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=J9MfJtQQCC4J+yYj6q08XzmiJ/V0ImtlwnBEGBRLeP0=; b=AvVVWQ3A4hD2cwpTvxnUp0mvZ1DdbPNE6kOGlpWaQ0vEcavG3KjB4qXV8CAHF2DHQ1 qd/QXG7k3NjH3l9VQeFN2v3orhnx5KrDJWllQEIHGYqz2EUVOeghRBNUsFJZ5HSMkF0W Z9jLXYcyzzZXxaVvqizVRZ8sePfR+kdka0qX7SHcuKncLhUHa24q/KR8olm4Xxu2fFMb 8VGKskTYcbLB2aKyGtgE6Fl5A1+3W7W9ocbfHhE5yrCRJI5PzQgWq2xDAihQP5DuOTi1 vf30xEKRNxH3MUUNIhg7JIkUhFJLqrhuil6RWVDrM2oz1+h0bdyLV+f0cropgT7tezeU YtfQ== X-Received: by 10.107.168.97 with SMTP id r94mr21209146ioe.181.1447434107864; Fri, 13 Nov 2015 09:01:47 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.117.85 with HTTP; Fri, 13 Nov 2015 09:01:28 -0800 (PST) In-Reply-To: <1447389121501-a9b46cb2-56963f98-6724d2a9@mixmax.com> References: <1447389121501-a9b46cb2-56963f98-6724d2a9@mixmax.com> From: Claus Ibsen Date: Fri, 13 Nov 2015 18:01:28 +0100 Message-ID: Subject: Re: Start/Stop CamelContext To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 Hi Yeah a full redeploy is safer. But if you only want to redeploy one or more routes. You would need to stop the route(s) then remove the route(s) and then add them again to the running camel context. There is API on CamelContext to do that from java code. On Fri, Nov 13, 2015 at 5:31 AM, Sashika wrote: > Hi, > I'm in need to load some camel route attributes like file paths etc from the > database and I'm initializing CamelContext from within spring. Also I use > java > DSL rather than XML DSL. I need camel to pickup the new values if I change > those > in the database. > 1. Do I have to restart the camel context in order for the new attributes to > take effect? > 2. If so how to start/stop CamelContext from within a Spring web application > > Any help is appreciated. > Regards Sashika. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2