Sun GlassFish Enterprise Server v3 Prelude Administration Guide

ProcedureTo Delete a JDBC Connection Pool

The remote delete-jdbc-connection-pool command enables you to delete an existing JDBC connection pool. Deleting a JDBC connection pool is a dynamic event and does not require server restart.

Before You Begin

Before deleting a JDBC connection pool, all associations to the 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 connection pool that you are deleting.

    To list the existing JDBC connection pools:

    asadmin list-jdbc-connection-pools
  3. If necessary, notify users that the JDBC connection pool is being deleted.

  4. Delete the connection pool by using the delete-jdbc-connection-pool(1) command.

Example 5–6 Deleting a JDBC Connection Pool

The following example command deletes the JDBC connection pool named DerbyPool:

asadmin delete-jdbc-connection-pool jdbc/DerbyPool

Information similar to the following is displayed if the connection pool is usable:

Command delete-jdbc-connection-pool executed successfully.

See Also

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