2.24.1 create-context-service
Creates a context service resource.
Synopsis
asadmin [asadmin-options] create-context-service [--help] [--enabled={false|true}] [--contextinfoenabled={false|true}] [--contextinfo={Classloader|JNDI|Security|WorkArea}] [--description description] [--target target] jndi_name
Storage location
Application Server installation directory/javaee/glassfish/bin
Function
The create-context-service subcommand creates a context service 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 resource 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
-
WorkArea
-
- --description description
-
Displays descriptive details about the resource
Type: String
The following values can be specified:
-
Descriptive details about 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:
-
JNDI name
Default value: N/A
-
Examples
The following example creates a context service on the server instance instance1.
asadmin create-context-service --target instance1 concurrent/myContextService
Exit Status
Exit Status |
Explanation |
---|---|
0 |
command executed successfully. |
1 |
error in executing the command. |