Oracle GlassFish Server 3.0.1 Administration Guide

ProcedureTo Delete a JavaMail Resource

Use the delete-javamail-resource subcommands in remote mode to delete a JavaMail session resource.

Before You Begin

References to the specified resource must be removed before running the delete-javamail-resource subcommands.

  1. Ensure that the server is running.

    Remote subcommands require a running server.

  2. List the JavaMail resources by using the list-javamail-resources(1) subcommands.

  3. Delete a JavaMail resource by using the delete-javamail-resource(1) subcommands.

  4. To apply your changes, restart GlassFish Server.

    See To Restart a Domain.

Example 18–4 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.

See Also

You can also view the full syntax and options of the subcommand by typing asadmin help delete-javamail-resource at the command line.