This topic applies to WebSphere Application Server Liberty V8.5.5.9 and earlier. For the latest Liberty topics, see the WebSphere Application Server Liberty documentation.
Managed Thread Factory (managedThreadFactory)
Managed thread factory
Attribute name | Data type | Default value | Description |
---|---|---|---|
contextServiceRef | A reference to top level contextService element (string). | DefaultContextService | Configures how context is propagated to threads |
createDaemonThreads | boolean | false | Configures whether or not threads created by the managed thread factory should be daemon threads. |
defaultPriority | int
Minimum: 1 Maximum: 10 |
Default priority for threads created by the managed thread factory. If unspecified, the priority of the creating thread is used. Priority cannot exceed the maximum priority for the managed thread factory, in which case the maximum priority is used instead. | |
id | string | A unique configuration ID. | |
jndiName | string | JNDI name | |
maxPriority | int
Minimum: 1 Maximum: 10 |
Maximum priority for threads created by the managed thread factory. |
- contextService
Description: Configures how context is propagated to threadsRequired: falseData type: Attribute name Data type Default value Description baseContextRef A reference to top level contextService element (string). Specifies a base context service from which to inherit context that is not already defined on this context service. jndiName string JNDI name onError - IGNORE
- FAIL
- WARN
WARN Determines the action to take in response to configuration errors. For example, if securityContext is configured for this contextService, but the security feature is not enabled, then onError determines whether to fail, raise a warning, or ignore the parts of the configuration which are incorrect. - IGNORE
- Server will not issue any warning and error messages when it incurs a configuration error.
- FAIL
- Server will issue a warning or error message on the first error occurrence and then stop the server.
- WARN
- Server will issue warning and error messages when it incurs a configuration error.
- contextService > baseContext
Description: Specifies a base context service from which to inherit context that is not already defined on this context service.Required: falseData type: Attribute name Data type Default value Description baseContextRef A reference to top level contextService element (string). Specifies a base context service from which to inherit context that is not already defined on this context service. id string A unique configuration ID. jndiName string JNDI name onError - IGNORE
- FAIL
- WARN
WARN Determines the action to take in response to configuration errors. For example, if securityContext is configured for this contextService, but the security feature is not enabled, then onError determines whether to fail, raise a warning, or ignore the parts of the configuration which are incorrect. - IGNORE
- Server will not issue any warning and error messages when it incurs a configuration error.
- FAIL
- Server will issue a warning or error message on the first error occurrence and then stop the server.
- WARN
- Server will issue warning and error messages when it incurs a configuration error.
- contextService > baseContext > baseContext
Description: Specifies a base context service from which to inherit context that is not already defined on this context service.Required: falseData type: com.ibm.ws.context.service-factory
- contextService > baseContext > classloaderContext
Description: Classloader context propagation configuration.Required: falseData type:
- contextService > baseContext > jeeMetadataContext
Description: Makes the namespace of the application component that submits a contextual task available to the task.Required: falseData type:
- contextService > baseContext > securityContext
Description: When specified, the security context of the work initiator is propagated to the unit of work.Required: falseData type:
- contextService > baseContext > syncToOSThreadContext
Description: When specified, the identity of the runAs Subject for the unit of work is synchronized with the Operating System identity.Required: falseData type:
- contextService > baseContext > zosWLMContext
Description: Indicates that the z/OS WLM Context should be managed as part of the thread context.Required: falseData type: Attribute name Data type Default value Description daemonTransactionClass string ASYNCDMN The Transaction Class name provided to WLM to classify work when a new WLM context is created for Daemon work. defaultTransactionClass string ASYNCBN The Transaction Class name provided to WLM to classify work when a new WLM context is being created for non-Daemon work. wlm - Propagate
- PropagateOrNew
- New
Propagate Indicates how the WLM context should be handled for non-Daemon work. - Propagate
- Use the same WLM Context (if one exists).
- PropagateOrNew
- Use the same WLM context or create a new one if no current context exists.
- New
- Always create a new WLM context.
- contextService > classloaderContext
Description: Classloader context propagation configuration.Required: falseData type:
- contextService > jeeMetadataContext
Description: Makes the namespace of the application component that submits a contextual task available to the task.Required: falseData type:
- contextService > securityContext
Description: When specified, the security context of the work initiator is propagated to the unit of work.Required: falseData type:
- contextService > syncToOSThreadContext
Description: When specified, the identity of the runAs Subject for the unit of work is synchronized with the Operating System identity.Required: falseData type:
- contextService > zosWLMContext
Description: Indicates that the z/OS WLM Context should be managed as part of the thread context.Required: falseData type: Attribute name Data type Default value Description daemonTransactionClass string ASYNCDMN The Transaction Class name provided to WLM to classify work when a new WLM context is created for Daemon work. defaultTransactionClass string ASYNCBN The Transaction Class name provided to WLM to classify work when a new WLM context is being created for non-Daemon work. wlm - Propagate
- PropagateOrNew
- New
Propagate Indicates how the WLM context should be handled for non-Daemon work. - Propagate
- Use the same WLM Context (if one exists).
- PropagateOrNew
- Use the same WLM context or create a new one if no current context exists.
- New
- Always create a new WLM context.