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

View: New views
2 Messages — Rating Filter:   Alert me  

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

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

LightInTheBox - Buy quality products at wholesale price!
Need professional support or training for Apache Camel? Graphic Design by Hiram and the Nabble Forum configured by James