Browsed by
Category: Tutorial

USING APACHE DBCP2 TO CREATE A CONNECTION POOL

USING APACHE DBCP2 TO CREATE A CONNECTION POOL

If you want to scale your database queries but limit the consumption of database resources you can use the Apache DBCP library (Database Connection Pools) to, as its own name explains, create a limited pool of connections which will be automatically maintained e.g. keep the connection open, take advantage of the pool to run as many queries as possible at the same time and recreate it when necessary. You can add it to your maven project by adding the following…

Read More Read More