Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Camel now supports configuring two aspects:

  • auto startup
  • order of starting routes

Configuring whether Camel should be auto started or not in XML DSL

...

It can help in cases where routes are inter dependent on each other and also help with graceful shutting down Camel as Camel can stop the routes in the correct order as well.

Info
titleStopping routes

Camel 2.2: Camel will stop the routes in the same order in which they was that they were started.
Camel 2.3: Camel will stop the routes in the reverse order that they were started.

Examples

Lets try a couple of examples

...

So you can use this to your advantage to only assign a startupOrder on the routes which really needs it.

Shutdown

Camel 2.2: Camel will shutdown the routes in the same order that they were started.
Camel 2.3: Camel will shutdown the routes in the reverse order that they were started.

as they was started. See also Graceful Shutdown.

See also