You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Geoff Gibbs (JIRA)" <ji...@apache.org> on 2008/10/08 16:17:52 UTC

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

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.


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

Posted by "Claus Ibsen (JIRA)" <ji...@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.