Oct 22, 2018

Clear Glassfish JDBC cache - Flushing a JDBC Connection Pool

Flushing a JDBC Connection Pool
Flushing a JDBC connection pool recreates all the connections in the pool and brings the pool to the steady pool size without the need for reconfiguring the pool. Connection pool reconfiguration can result in application redeployment, which is a time-consuming operation. Flushing destroys existing connections, and any existing transactions are lost and must be retired.

You can flush a JDBC connection pool by using the asadmin flush-connection-pool command:


asadmin flush-connection-pool i88ca-mysql-pool