Creates a managed thread factory resource.


asadmin [asadmin-options] create-managed-thread-factory [--help]
        [--threadpriority threadpriority]
        [--description description]
        [--property property]
        [--target target]


The create-managed-thread-factory subcommand creates a managed thread factory resource.

This subcommand is supported in remote mode only.



Options for the asadmin utility. For information about these options, see the asadmin help page.


Displays the help text for the subcommand.


Determines whether the managed thread factory is enabled at runtime.

The default value is true.


Determines whether container contexts are propagated to threads. If set to true, the contexts specified in the --contextinfo option are propagated. If set to false, no contexts are propagated and the --contextinfo option is ignored.

The default value is true.


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.


Specifies the priority to assign to created threads.

The default value is 5.


Descriptive details about the resource.


Optional attribute name/value pairs for configuring the resource. Payara Server does not define any additional properties for this resource. Moreover, this resource does not currently use any additional properties.


Specifies the target for which you are creating the resource. Valid targets are:


Creates the resource for the default server instance. This is the default value.


Creates the resource for the domain.


Creates the resource for every server instance in the specified cluster.


Creates the resource for the specified server instance.



The JNDI name of this resource.


Example 1 Creating a Managed Thread Factory Resource

This example creates a managed thread factory resource named concurrent/myThreadFactory.

asadmin> create-managed-thread-factory --description "Thread Factory example" --threadpriority 1 concurrent/myThreadFactory
Managed thread factory concurrent/myThreadFactory created successfully.
Command create-managed-thread-factory executed successfully.

Exit Status


subcommand executed successfully


error in executing the subcommand

See Also