LibraryLink ToToggle FramesPrintFeedback

Chapter 7. Configuring Component Thread Pools

The JBI components are multi-threaded. Each one maintains a thread pool that it uses to process message exchanges. These thread pools are configured using three properties that control the minimum number of threads in the pool, the maximum number of threads in the pool, and the depth of the component's job queue.

These properties are specified in the component configuration files in the InstallDir/etc folder. The component configuration files are named using the scheme ComponentName.cfg. For example, the configuration file for the JMS file component would be servicemix-file.cfg.

The thread pool properties can also be configured using a JMX console.

[Important]Important

The component needs to be restarted for changes to take effect.

Table 7.1 lists the properties used to configure component thread properties.


When a component receives a new message exchange it choose the thread to process the exchange as follows:

Example 7.1 shows the configuration for a component whose thread pool can have between 10 and 200 threads.