Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-969

CamelContext.setRoutes() documentation is misleading

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.0
    • 1.5.0
    • camel-core
    • None

    Description

      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.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            geoffgibbs Geoff Gibbs
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: