[jira] Created: (CAMEL-969) CamelContext.setRoutes() documentation is misleading

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (CAMEL-969) CamelContext.setRoutes() documentation is misleading

JIRA jira@apache.org
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


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.

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (CAMEL-969) CamelContext.setRoutes() documentation is misleading

JIRA jira@apache.org

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