You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2016/07/29 17:27:20 UTC
[jira] [Updated] (CAMEL-10206) Creating a route, while creating a
route does not work
[ https://issues.apache.org/jira/browse/CAMEL-10206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-10206:
--------------------------------
Priority: Minor (was: Major)
> 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)