Versions Compared

Key

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

...

The default strategy will gracefully shutdown routes:

  • Camel 2.2: in the same order they was started
  • Camel 2.3: in the reverse order they was started. The option shutdownRoutesInReverseOrder can be used to use the old behavior.
  • let pending and current in flight exchanges run to completion before shutting down
  • using a timeout of 300 seconds which then forces a shutdown now

You can configure the timeout, and whether it should shutdown now remaining routes when the timeout occurred or ignore. See the setters on the class.

...

You can control two areas that influence graceful shutdown in the Camel routing:

  • ShutdownRoute
  • ShutdownRunningTask

These options can be configured on two scopes: context and route. Where a route will fallback to the context scoped option, if not explicit configured. (same principle as Error Handler, etc.).

...

Batch Consumer should implement ShutdownAware so they properly support the ShutdownRunningTask option. See GenericFileConsumer for an example.

See Also