2.24.5 delete-context-service
Deletes a context service resource with the specified JNDI name.
Synopsis
asadmin [asadmin-options] delete-context-service [--help] [--target target] context-service-name
Storage location
Application Server installation directory/javaee/glassfish/bin
Function
The delete-context-service subcommand removes a context service resource with the specified JNDI name.
This subcommand is supported in remote mode only.
Precondition
DAS has to be in a running state.
Arguments
- --help | -?
-
Displays the help text for the subcommand.
- --target target
-
Specifies the target from which you are deleting the resource.
Type: String
The following values can be specified:
-
server
Deletes the resource from the default server instance. This is the default value.
-
domain
Deletes the resource from the domain.
-
cluster-name
Deletes the resource from every server instance in the specified cluster.
-
instance-name
Deletes the resource from the specified server instance.
Default value: server
-
- context-service-name
-
Specifies the JNDI name of the resource.
Type: String
The following values can be specified:
-
JNDI name of the resource
Default value: N/A
-
Examples
The following example deletes the context service resource named concurrent/myContextService on the server instance instance1.
asadmin delete-context-service --target instance1 concurrent/myContextService
Exit Status
Exit Status |
Explanation |
---|---|
0 |
command executed successfully. |
1 |
error in executing the command. |