Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When using Spring XML you then just define a spring bean which implements the org.apache.camel.spi.ShutdownStrategy and Camel will lookup it up at startup and use it instead of its default. TODO: Advanced spring config pageSee more at Advanced configuration of CamelContext using Spring.

ShutdownAware

The interface org.apache.camel.spi.ShutdownAware is an optional interface consumers can implement to have fine grained control during shutdown. The ShutdownStrategy must be able to deal with consumers which implements this interface. This interface was introduced to cater for in memory consumers such as SEDA which potentially have a number of pending messages on its internal in memory queues. What this allows is to let it control the shutdown process to let it complete its pending messages.

...