Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A6326198E5 for ; Fri, 22 Apr 2016 14:19:13 +0000 (UTC) Received: (qmail 52862 invoked by uid 500); 22 Apr 2016 14:19:13 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 52823 invoked by uid 500); 22 Apr 2016 14:19:13 -0000 Mailing-List: contact issues-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 issues@camel.apache.org Received: (qmail 52804 invoked by uid 99); 22 Apr 2016 14:19:12 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Apr 2016 14:19:12 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DDB4F2C1F5C for ; Fri, 22 Apr 2016 14:19:12 +0000 (UTC) Date: Fri, 22 Apr 2016 14:19:12 +0000 (UTC) From: "Antonin Stefanutti (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CAMEL-9904) Avoid creating an empty default Camel context in Camel CDI for empty deployments MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Antonin Stefanutti created CAMEL-9904: ----------------------------------------- Summary: Avoid creating an empty default Camel context in Camel CDI for empty deployments Key: CAMEL-9904 URL: https://issues.apache.org/jira/browse/CAMEL-9904 Project: Camel Issue Type: Improvement Components: camel-cdi Reporter: Antonin Stefanutti Assignee: Antonin Stefanutti Priority: Minor Fix For: 2.18.0 Camel CDI automatically deploys a Camel context to avoid user having to explicitly declare one. However, if the user mis-configures her/his application so that there is no route nor any other active components configured (like consumers), that leads to having an empty Camel context started. Besides, some runtimes automatically deploy the Camel CDI extension even in the case the user does not intent to use it, which leads to having an empty Camel context started. In both cases, the Camel CDI extension could rely on an heuristic (no routes, no consumers, ...) to avoid deploying that empty Camel context. -- This message was sent by Atlassian JIRA (v6.3.4#6332)