camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-10206) Creating a route, while creating a route does not work
Date Fri, 29 Jul 2016 17:29:20 GMT

     [ 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)

Mime
View raw message