Question: how jdbc connection pool works?
Answer: Each JDBC resource specifies a connection pool. ... The JDBC driver translates the application's JDBC calls into the protocol of the database server. When it is finished accessing the database, the application closes the connection. The application server returns the connection to the connection pool.