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 B936A106B1 for ; Thu, 6 Feb 2014 11:29:47 +0000 (UTC) Received: (qmail 87253 invoked by uid 500); 6 Feb 2014 11:29:45 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 87166 invoked by uid 500); 6 Feb 2014 11:29:43 -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 87134 invoked by uid 99); 6 Feb 2014 11:29:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Feb 2014 11:29:42 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=FORGED_YAHOO_RCVD,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Feb 2014 11:29:37 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1WBN8u-0001v8-AG for users@camel.apache.org; Thu, 06 Feb 2014 03:29:16 -0800 Date: Thu, 6 Feb 2014 03:29:16 -0800 (PST) From: manchandap To: users@camel.apache.org Message-ID: <1391686156300-5746887.post@n5.nabble.com> In-Reply-To: References: <1391681295956-5746884.post@n5.nabble.com> Subject: Re: Adding Routes to a running Camel Context MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Thanks Claus for the quick reply. I had checked this link. My queries: # Where should the following code be placed that is in the main class (that runs the camel context) or some processor. /// load route from XML and add them to the existing camel context InputStream is = getClass().getResourceAsStream("barRoute.xml"); RoutesDefinition routes = context.loadRoutesDefinition(is); context.addRouteDefinitions(routes.getRoutes());/ # Would this require restart the camel that is the camel context # Can i achieve similar flexibility if I am using Java DSL to define my routes Thanks Prince Manchanda -- View this message in context: http://camel.465427.n5.nabble.com/Adding-Routes-to-a-running-Camel-Context-tp5746884p5746887.html Sent from the Camel - Users mailing list archive at Nabble.com.