asadmin [asadmin-options] delete-javamail-resource [--help]
[--target target] jndi_name
delete-javamail-resource |
Previous | Next | Contents |
removes a JavaMail session resource
Synopsis
asadmin [asadmin-options] delete-javamail-resource [--help]
[--target target] jndi_name
Description
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.
Options
Options for the asadmin
utility. For information about these
options, see the asadmin
(1M) help page.
--help
-?
Displays the help text for the subcommand.
--target
This option specifies the target from which you are deleting the
JavaMail session resource. Valid values are:
server
Deletes the resource from the default server instance. This is the default value.
domain
Deletes the resource from the domain.
Deletes the resource from every server instance in the cluster.
Deletes the resource from a particular server instance.
Operands
The JNDI name of the JavaMail session resource to be deleted.
Examples
Example 1 Deleting a JavaMail Resource
This example deletes the JavaMail session resource named
mail/MyMailSession
.
asadmin> delete-javamail-resource mail/MyMailSession
Command delete-javamail-resource executed successfully.
Exit Status
subcommand executed successfully
error in executing the subcommand
See Also
Previous | Next | Contents |