Versions Compared

Key

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

...

Notice the pattern name has changed from Camel 2.10 onwards, use #name# instead.

In Camel 2.11 onwards its easier to set the thread name pattern on the CamelContext using the threadNamePattern attribute in the XML files as shown below:

Code Block
xml
xml

  <camelContext xmlns="http://camel.apache.org/schema/spring" threadNamePattern="Riding the thread #name#">
    <route>
      <from uri="direct:start"/>
      <to uri="mock:result"/>
    </route>
  </camelContext>

Component developers

If you develop your own Camel component and are in need of a thread pool, then its advised to use the ExecutorServiceStrategy/ExecutorServiceManager to create the thread pool you need.

...