December 2013
Intermediate to advanced
424 pages
9h 7m
English
In the Using custom thread pools recipe we saw how thread pools could be defined. These can be re-used across multiple EIPs and routes.
This recipe will take that idea to the next level by guiding you through defining thread pool profiles, which act as templates for thread pool creation. By referring to a thread pool profile, an EIP will have a thread pool created for its own exclusive use with the characteristics defined in the profile.
The Java code for this recipe is located in the org.camelcookbook.parallelprocessing.threadpoolprofiles package. The Spring XML files are located under src/main/resources/META-INF/spring and prefixed with threadPoolProfiles.
Configure a threadPoolProfile class ...
Read now
Unlock full access