2.16.3 delete-jdbc-connection-pool
Removes the specified JDBC connection pool.
Synopsis
asadmin [asadmin-options] delete-jdbc-connection-pool [--help] [--cascade={false|true}] jdbc_connection_pool_id
Storage location
Application Server installation directory/javaee/glassfish/bin
Function
The delete-jdbc-connection-pool subcommand deletes a JDBC connection pool. Before running this subcommand, all associations to the JDBC connection pool must be removed.
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.
- --cascade={false|true}
-
Specifies the property to delete the connection pool and all JDBC resources associated with the pool.
Type: Boolean
The following values can be specified:
-
true
-
false
Default value: false
-
- jdbc_connection_pool_id
-
Specifies the name of the JDBC resource.
Type: String
The following values can be specified:
-
Name of the JDBC resource
Default value: N/A
-
Examples
The following example deletes the sample_derby_pool JDBC connection pool.
asadmin delete-jdbc-connection-pool --cascade=false sample_derby_pool
Exit Status
Exit Status |
Explanation |
---|---|
0 |
command executed successfully. |
1 |
error in executing the command. |