![]() When using an external connection pool, the MariaDB Driver class must be configured.Įxample using hikariCP JDBC connection pool : final HikariDataSource ds = new HikariDataSource() ĭs.setDriverClassName("") ĭs.setJdbcUrl("jdbc:mariadb://localhost:3306/db") ĭs.addDataSourceProperty("user", "root") ĭs.addDataSourceProperty("password", "myPassword") See the pool documentation for more information. deals with non-activity (connections in the pool will be released if not used after some time, avoiding the issue created when the server closes the connection after is reached).2 different connection states cleaning after release.The driver's internal pool configuration provides a very fast pool implementation and deals with the issues most of the java pool have: ![]() ![]() It maintains a pool of connections, and when a new connection is requested, one is borrowed from the pool.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |