2.17.2 delete-javamail-resource
Removes a JavaMail session resource.
Synopsis
asadmin [asadmin-options] delete-javamail-resource [--help] [--target target] jndi_name
Storage location
Application Server installation directory/javaee/glassfish/bin
Function
The delete-javamail-resource subcommand removes the specified JavaMail session resource. Ensure that you remove all references to this resource before running this subcommand. 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 JavaMail session 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 cluster.
-
instance_name
Deletes the resource from a particular server instance.
Default value: server
-
- jndi_name
-
Specifies the JNDI name of the JavaMail session resource.
Type: String
The following values can be specified:
-
JNDI name of the resource
Default value: N/A
-
Examples
The following example deletes the JavaMail session resource named mail/MyMailSession on the server instance instance1.
asadmin delete-javamail-resource --target instance1 mail/MyMailSession
Exit Status
Exit Status |
Explanation |
---|---|
0 |
command executed successfully. |
1 |
error in executing the command. |