create-managed-thread-factory
create-managed-thread-factory
Creates a managed thread factory resource
Synopsis
asadmin [asadmin-options] create-managed-thread-factory [--help]
[--enabled={false|true}]
[--contextinfoenabled={false|true}]
[--contextinfo={Classloader|JNDI|Security|WorkArea}]
[--threadpriority threadpriority]
[--use-virtual-threads={false|true}]
[--description description]
[--property property]
[--target target]
jndi_name
Description
The create-managed-thread-factory subcommand creates a managed thread
factory resource.
This subcommand is supported in remote mode only.
Options
- asadmin-options
-
Options for the
asadminutility. For information about these options, see theasadmin(1M) help page. --help-?-
Displays the help text for the subcommand.
--enabled-
Determines whether the managed thread factory is enabled at runtime. The default value is
true. --contextinfoenabled-
Determines whether container contexts are propagated to threads. If set to
true, the contexts specified in the--contextinfooption are propagated. If set tofalse, no contexts are propagated and the--contextinfooption is ignored. The default value istrue. --contextinfo-
Specifies individual container contexts to propagate to threads. Valid values are Classloader, JNDI, Security, and WorkArea. Values are specified in a comma-separated list and are case-insensitive. All contexts are propagated by default.
--threadpriority-
Specifies the priority to assign to created threads. The default value is 5.
--use-virtual-threads-
Determines whether virtual threads should be created instead of usual platform threads. Virtual threads are available only in Java 21 or newer. In case of earlier version it will fallback to platform threads. The default value is
true. --description-
Descriptive details about the resource.
--property-
Optional attribute name/value pairs for configuring the resource.
Eclipse GlassFish does not define any additional properties for this resource. Moreover, this resource does not currently use any additional properties. --target-
Specifies the target for which you are creating the resource. Valid targets are:
server-
Creates the resource for the default server instance. This is the default value.
domain-
Creates the resource for the domain.
- cluster_name
-
Creates the resource for every server instance in the specified cluster.
- instance_name
-
Creates the resource for the specified server instance.
Examples
Example 1 Creating a Managed Thread Factory Resource
This example creates a managed thread factory resource named
concurrent/myThreadFactory.
asadmin> create-managed-thread-factory concurrent/myThreadFactory
Managed thread factory concurrent/myThreadFactory created successfully.
Command create-managed-thread-factory executed successfully.