Hitachi

Hitachi Application Server V10 Command Reference Guide (For UNIX® Systems)


2.24.4 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] [--description description]
    [--target target] jndi_name

Storage location

Application Server installation directory/javaee/glassfish/bin

Function

The create-managed-thread-factory subcommand creates a managed thread factory resource. This command is supported in remote mode only.

Precondition

DAS has to be in a running state.

Arguments

--help | -?

Displays the help text for the subcommand.

--enabled={false|true}

Determines whether the managed thread factory is enabled at runtime.

Type: Boolean

The following values can be specified:

  • true

  • false

Default value: true

--contextinfoenabled={false|true}

Determines whether container contexts are propagated to threads.

Type: Boolean

The following values can be specified:

  • true

  • false

Default value: true

--contextinfo={Classloader|JNDI|Security|WorkArea}

Specifies individual container contexts to propagate to threads.

Type: String

The following values can be specified:

  • Classloader

  • JNDI

  • Security

  • WorkArea

Default value: Classloader, JNDI, Security, and WorkArea

--threadpriority threadpriority

Specifies the priority to assign for the created threads.

Type: Integer

The following values can be specified:

  • 1 to 10

Default value: 5

--description description

Specifies the descriptive details about the resource.

Type: String

The following values can be specified:

  • Provide the description of the resource

Default value: N/A

--target target

Specifies the target for which you are creating the resource.

Type: String

The following values can be specified:

  • 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.

Default value: server

jndi_name

Specifies the JNDI name of this resource.

Type: String

The following values can be specified:

  • Specify the JNDI name

Default value: N/A

Examples

The following example creates a managed-thread-factory on the server instance instance1.

asadmin create-managed-thread-factory --target instance1 
concurrent/myThreadFactory

Exit Status

Exit Status

Explanation

0

command executed successfully.

1

error in executing the command.