Thread pool configuration XML elements
The following element types for thread pools are subtypes of the abstract <threadpool>
type:
<j2ee-managed-threadpool>- This type of thread pool supports JMS integration and JSR-236 concurrency. Use this type for running in IBM WebSphere, JBoss, or Oracle
Weblogic environments. Use this type of thread pool for running in a JBoss
environment. This type does not support an inbound JMS integration that runs in
devmode on the Jetty platform. <unmanaged-threadpool-cached>- This type of thread pool supports reusing an available thread that is not in use and creating a new thread if one is not available.
<unmanaged-threadpool-fixed>- This type of thread pool uses a fixed number of threads.
<unmanaged-threadpool-forkjoin>- This type of thread pool uses the same number of threads as the number of CPUs that the JVM detects. Use this type for a self-managing default thread pool.
<unmanaged-threadpool-single>- This type of thread pool uses a single thread.
Some of these types contain attributes or subelements specific to the type.
The base configuration provides definitions for managed and unmanaged thread pools that use default attribute values. These definitions are for development use only and must not be used in a production environment. For best performance, create your own custom thread pool with a unique name and tune that thread pool for the specific work you need, such as your JMS work. Then, update the thread pool settings to include the JNDI name for your new thread pool.
For testing inbound JMS integration in dev mode on the Jetty platform, use an unmanaged thread
pool, not a thread pool of type j2ee-managed-threadpool.
<threadpool> XML element attributes
The parent <threadpool> type provides the following attributes:
|
Attribute name |
Type |
Required |
Default value |
Description |
|---|---|---|---|---|
|
|
|
• |
A unique identifying name for this thread pool in the inbound-integration-config.xml file. The |
|
|
|
|
|
Determines whether to disable this thread pool. Set to |
|
|
|
|
Sets a configuration that is valid only for a specific server environment or set of server environments. You can specify multiple values for this attribute by using a comma-separated list. |
<j2ee-managed-threadpool> XML element subelement
The J2EE managed thread pool XML element has the following subelement.
|
Subelement name |
Type |
Required |
Default value |
Description |
|---|---|---|---|---|
|
|
|
• |
|
The JNDI name of the application server thread pool. |
<unmanaged-threadpool-fixed> XML element subelement
The unmanaged, fixed thread pool XML element has the following subelement.
|
Subelement name |
Type |
Required |
Default value |
Description |
|---|---|---|---|---|
|
|
|
• |
10 |
The number of threads to use in your thread pool. |
