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 0EED710F25 for ; Mon, 12 Aug 2013 14:11:27 +0000 (UTC) Received: (qmail 87683 invoked by uid 500); 12 Aug 2013 14:11:26 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 87513 invoked by uid 500); 12 Aug 2013 14:11:24 -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 87504 invoked by uid 99); 12 Aug 2013 14:11:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Aug 2013 14:11:23 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of brianpintoe@hotmail.com does not designate 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Aug 2013 14:11:17 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1V8spk-0008U8-H6 for users@camel.apache.org; Mon, 12 Aug 2013 07:10:56 -0700 Date: Mon, 12 Aug 2013 07:10:56 -0700 (PDT) From: bpinto To: users@camel.apache.org Message-ID: <1376316656523-5737154.post@n5.nabble.com> Subject: Enable/disable Intercept strategy at runtime MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org HI, I am looking for a way to add interceptstrategy to a camel context during runtime after the camel context has started. Similarly,I would also want to disable the respective interceptstrategy while the camel context continues to run. 1. Can this be done ? If yes how do I go about it? I have looked into camelcontext.addInterceptstrategy and camelcontext.getInterceptStrategies().remove() and restarted the routes, but it doesnt seem to take effect. The requirement is mainly to be able to add plugin behaviour on demand. Any pointers would be helpful. Thanks, Brian -- View this message in context: http://camel.465427.n5.nabble.com/Enable-disable-Intercept-strategy-at-runtime-tp5737154.html Sent from the Camel - Users mailing list archive at Nabble.com.