Sun GlassFish Enterprise Server v3 Prelude Administration Guide

ProcedureTo Delete a JDBC Resource

This remote command enables you to delete an existing JDBC resource. Deleting a JDBC resource is a dynamic event and does not require server restart.

Before You Begin

Before deleting a JDBC resource, all associations with this resource must be removed.

  1. Ensure that the server is running.

    Remote commands require a running server.

  2. Obtain the exact name of the JDBC resource that you are deleting.

    To list the existing JDBC resources:

    asadmin list-jdbc-resources
  3. If necessary, notify users that the JDBC resource is being deleted.

  4. Delete a JDBC resource by using the delete-jdbc-resource(1) command.

Example 5–9 Deleting a JDBC Resource

The following example command deletes a JDBC resource named DerbyPool:

asadmin delete-jdbc-resource jdbc/DerbyPool

Information similar to the following is displayed:

Command delete-jdbc-resource executed successfully.

See Also

To see the full syntax and options of the command, type asadmin delete-jdbc-resource --help at the command line.