[
https://issues.apache.org/activemq/browse/CAMEL-969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-969.
-------------------------------
Assignee: Claus Ibsen
Fix Version/s: 1.5.0
Resolution: Fixed
Thanks for reporting this.
You should use addRoutes instead, as overriding existing routes is not
supported yet, use addRoutes instead
> CamelContext.setRoutes() documentation is misleading
> ----------------------------------------------------
>
> Key: CAMEL-969
> URL: https://issues.apache.org/activemq/browse/CAMEL-969
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 1.4.0
> Reporter: Geoff Gibbs
> Assignee: Claus Ibsen
> Fix For: 1.5.0
>
>
> The javaDoc for CamelContext.setRoutes() states:
> "Sets the routes for this context, replacing any current routes"
> Yet when used, and the context started, startRouteDefinitions() is used
> first, causing any existing routes created through the definitions (such as
> those from RouteBuilders) to be re-created and started before the new routes
> provided to setRoutes() are started.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.