Sun GlassFish Enterprise Server v3 Prelude Administration Guide

ProcedureTo Contact (Ping) a Connection Pool

The remote ping-connection-pool command tests if a connection pool is usable. For example, if you create a new JDBC connection pool for an application that is expected to be deployed later, you can test the JDBC pool with this command before the application is deployed.

Before You Begin

Before you can contact a connection pool, the connection pool must be created with authentication, and the server or database must be running.

  1. Ensure that the server is running.

    Remote commands require a running server.

  2. Ping a connection pool by using the ping-connection-pool(1) command.

Example 5–5 Contacting a Connection Pool

The following example command tests to see if the DerbyPool connection pool is usable:

asadmin ping-connection-pool DerbyPool

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

Command ping-connection-pool executed successfully

See Also

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