πWhat is Data Source in Java ?
Descibe about data source in java
Data soruce is a object that use for mainpulate connection pool(CP) of Java. When client want to connect database, client need to create new connection everytime that it will have the issue when have a lot of request from client and database will lock. Connection pool is a concept that come to solve this. Connection pool is a pool that we have a lot of DB connection inside when client create connection after finish access database, the connection haven't closed yet but it will be kept in pool so when new client request it will use connection from pool. Java has 2 library for mainpulate CP including 1. Hikari CP 2. Tomcat CP
Last updated