JDBC Tutorial part 3/3 – Database connection pools

Опубликовано: 14 Апрель 2026
на канале: MariaDB
10,455
53

In this video, Alejandro Duarte shows how to use HikariCP with JDBC. HikariCP is a database connection pool for Java. A pool keeps a set of ready-to-use opened database connections that multiple threads can "borrow".

►Read the tutorial: https://dzone.com/articles/jdbc-tutor...
►Source code: https://github.com/mariadb-developers...

0:00 Connection pools
1:10 Adding HikariCP using Maven
2:57 Replacing DriverManager with a DataSource
4:50 Initializing the connection pool
7:04 Closing the connection pool
7:40 Getting connections from the pool
9:25 When is a connection pool needed?

►Follow Alejandro Duarte on Twitter:   / alejandro_du  
►Follow MariaDB ® on Twitter:   / mariadb  
►Subscribe to the MariaDB channel:    / mariadb  
►More Java videos:    • Java and Spring Developers  

#Java #Databases #MariaDB

MariaDB is making a big impact on the world. Whether you’re checking your bank account, buying a coffee, shopping online, making a phone call, listening to music, taking out a loan, or ordering takeout–MariaDB is the backbone of applications used every day. Companies small and large, including 75% of the Fortune 500 run MariaDB, touching the lives of billions of people. With massive reach through Linux distributions, enterprise deployments, and public clouds, MariaDB is uniquely positioned as the leading database for modern application development.

Explore MariaDB: https://mariadb.com
Learn about SkySQL: https://mariadb.com/products/skysql
Access tons of resources on our DeveloperHub: https://mariadb.com/developers/
Get in touch with MariaDB experts via Slack: https://mariadb-community.slack.com/