Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F31BB200B5F for ; Fri, 29 Jul 2016 19:29:21 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id F1CEA160A6E; Fri, 29 Jul 2016 17:29:21 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 69CA4160AA6 for ; Fri, 29 Jul 2016 19:29:21 +0200 (CEST) Received: (qmail 40776 invoked by uid 500); 29 Jul 2016 17:29:20 -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 40705 invoked by uid 99); 29 Jul 2016 17:29:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jul 2016 17:29:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7984B2C0D5F for ; Fri, 29 Jul 2016 17:29:20 +0000 (UTC) Date: Fri, 29 Jul 2016 17:29:20 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CAMEL-10206) Creating a route, while creating a route does not work MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 29 Jul 2016 17:29:22 -0000 [ https://issues.apache.org/jira/browse/CAMEL-10206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen resolved CAMEL-10206. --------------------------------- Resolution: Not A Problem > Creating a route, while creating a route does not work > ------------------------------------------------------ > > Key: CAMEL-10206 > URL: https://issues.apache.org/jira/browse/CAMEL-10206 > Project: Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.17.2 > Reporter: Jens Reimann > Priority: Minor > > Creating a route while creating a route leaves the second route in line unstarted. > That sounds a bit strange so I try to explain: When you have a custom camel endpoint which actually forwards requests to another route and does create that route during the "doStart" method then the call stack will be like that: > * Camel Context - start > * start routes (set starting = true) > * Custom Producer/Consumer - doStart > * Camel Context - add route > * start routes -> return due to "starting = true" > A possible workaround it to create an executor service in the custom component and forward the route creations to it. -- This message was sent by Atlassian JIRA (v6.3.4#6332)