1.

How Do I Check In My Code Whether A Maximum Limit Of Database Connections Have Been Reached?

Answer»

Use DatabaseMetaData.getMaxConnections() and COMPARE to the number of CONNECTIONS currently open. Note that a return value of ZERO can mean unlimited or, unfortunately, unknown. Of COURSE, DRIVER Manager .getConnection () will throw an exception if a Connection can not be obtained.

Use DatabaseMetaData.getMaxConnections() and compare to the number of connections currently open. Note that a return value of zero can mean unlimited or, unfortunately, unknown. Of course, driver Manager .getConnection () will throw an exception if a Connection can not be obtained.



Discussion

No Comment Found