79324214

Date: 2025-01-02 15:32:58
Score: 0.5
Natty:
Report link

what is the purpose of PoolDataSource.close()? Do you want to close all connections present in pool when your application shuts down? If yes, You can use UniversalConnectionPoolManager API to destroy the connection pool. PLease refer below javadoc for the same: https://docs.oracle.com/en/database/oracle/oracle-database/19/jjucp/overview-using-ucp-manager.html#GUID-3C734CAE-3DF8-4AC7-ADAA-925EF9BFF38D

Please note that the UCP automatically closes all connections on JVM exit using JVM shutdown hooks.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): what is the
  • Low reputation (0.5):
Posted by: Saurabh Verma