You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Jens Reimann (JIRA)" <ji...@apache.org> on 2016/07/29 15:39:20 UTC
[jira] [Created] (CAMEL-10206) Creating a route, while creating a
route does not work
Jens Reimann created CAMEL-10206:
------------------------------------
Summary: 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
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)