I am writing an application which use oracle UCP for database connection pooling. Initially i set the maximum size to 50. But assuming all the connections are going to be acquired at a given time, how can i avoid the below exception when the applications tries to get another db connection and increase the size of the UCP automatically?
Caused by: java.sql.SQLException: Exception occurred while getting connection: oracle.ucp.UniversalConnectionPoolException: All connections in the Universal Connection Pool are in use