Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 90FA995F0 for ; Mon, 14 Nov 2011 18:02:17 +0000 (UTC) Received: (qmail 92612 invoked by uid 500); 14 Nov 2011 18:02:16 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 92593 invoked by uid 500); 14 Nov 2011 18:02:16 -0000 Mailing-List: contact dev-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 dev@camel.apache.org Received: (qmail 92585 invoked by uid 99); 14 Nov 2011 18:02:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Nov 2011 18:02:16 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Nov 2011 18:02:14 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8121B838D8 for ; Mon, 14 Nov 2011 18:01:53 +0000 (UTC) Date: Mon, 14 Nov 2011 18:01:53 +0000 (UTC) From: "Claus Ibsen (Created) (JIRA)" To: dev@camel.apache.org Message-ID: <1451870462.27436.1321293713530.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (CAMEL-4678) Allow lifecycle strategy to veto starting CamelContext, but to suppress exception to ensure bundle is in valid state in OSGi MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Allow lifecycle strategy to veto starting CamelContext, but to suppress exception to ensure bundle is in valid state in OSGi ---------------------------------------------------------------------------------------------------------------------------- Key: CAMEL-4678 URL: https://issues.apache.org/jira/browse/CAMEL-4678 Project: Camel Issue Type: Improvement Components: camel-core Reporter: Claus Ibsen Assignee: Claus Ibsen Priority: Minor Fix For: 2.8.3, 2.9.0 A custom lifecycle strategy can veto starting CamelContext in case something is wrong etc. This can be done by throwing the VetoCamelContextStartException in the onCamelContextStart method. However currently the exception is re-thrown all the way causing the osgi container to regard the bundle in failure state. Where as you may want the bundle to start properly, but what you intend to do is to prevent CamelContext itself from starting. For example currently you will get this state {code} 15:58:13,057 | ERROR | rint Extender: 1 | BlueprintContainerImpl | ? ? | 10 - org.apache.aries.blueprint - 0.3.1 | Unable to start blueprint container for bundle foo {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira