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

Update doc to clarify how to specify routes to start up last

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.23.0
    • 2.24.0, 3.0.0
    • documentation
    • None
    • Unknown

    Description

      To specify routes to start up last, you can set up the startupOrder number to much bigger than 1000 (e.g. 10000) and it is the officially supported way.

      However, the old doc is still obscure in that whether you can use the numbers >= 1000 for the startupOrder attribute. See:
      http://camel.apache.org/configuring-route-startup-ordering-and-autostartup.html

      You can also configure the order in which routes are started. Previously Camel started the routes in a non deterministic order. Now you have fine grained control in which order the routes should be started. There is a new attribute startupOrder which is a Integer that states the order. Camel then sorts the routes before starting time. The routes with the lowest startupOrder is started first. All startupOrder defined must be unique among all routes in your CamelContext.
      You should also use numbers that are lower than 1000, as routes without an explicit startupOrder define will have a number starting from 1000 auto assigned. So view numbers from 1000 upwards as reserved internally for Camel itself.

      Let's update the doc to clarify this supported way.

      Attachments

        Issue Links

          Activity

            People

              tadayosi Tadayoshi Sato
              tadayosi Tadayoshi Sato
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: