I would like to create a database connection pool.
Can someone tell me which data structure should be used to support the pool?
It should be implemented using the Object Pool desing pattern . You can read about it in Kircher, Michael; Prashant Jane; (2002-07-04). Pool Association. EuroPLoP 2002. Received 2007-06-09. or in the Object Pool Design Template . Java implementation for classes ObjectPooland JDBCConnectionPoolcan be found here .
ObjectPool
JDBCConnectionPool
singleton (, ) :
Lists HashTables - , . ObjectPool - LinkedList .
Lists
HashTables
LinkedList
, , , Commons DBCP, .
. http://www.javaworld.com/jw-06-1998/jw-06-object-pool.html. !
:
, /.
. , , , - () , () , , , .
, ?
. API Apache Database
. Sun: :
JDBC 2.0 , . JDBC 2.0 , JDBC-.
, .
c3p0 ( Hibernate)
Source: https://habr.com/ru/post/1709172/More articles:Moving sprites between plates in the isometric world - 2dIPhone Audio Recording - AudioStreamBasicDescription Values - iphoneIs there a way to configure the details of MSVS static code analysis? - c ++best practice for custom settings in $ HOME in Python - pythonКак переносить мой пакет SSIS - как это сделать? - sqlIs it possible to synchronize video on multiple computers using WPF? - synchronizationConfiguring namespace reservation in Windows XP 64 bit - windows-xpTimestamp response is incorrect - BouncyCastle - javaПерекрытие краской combobox с использованием WndProc - vb.netThe fastest way to create a hash SQL DB DB schema script - sqlAll Articles