Questions tagged [apache-commons-dbcp]

Apache-commons-dbcp provides an efficient implementation of the Database Connection Pool under the Apache license.

Many projects support interaction with a relational database. Creating a new connection for each user can be time consuming (often requiring multiple seconds of clock time), in order to perform a database transaction that might take milliseconds. Opening a connection per user can be unfeasible in a publicly-hosted Internet application where the number of simultaneous users can be very large. Accordingly, developers often wish to share a "pool" of open connections between all of the application's current users. The number of users actually performing a request at any given time is usually a very small percentage of the total number of active users, and during request processing is the only time that a database connection is required. The application itself logs into the DBMS, and handles any user account issues internally.

Apache-commons-dbcp coordinates the efforts required to create and maintain an efficient, feature-rich Database Connection Pool package under the ASF.

394 questions
-1
votes
1 answer

Will the performance of my web app decrease if i try this code?

I create "DataSourceConnection" class follow Singleton Pattern, but I want to connect to multi-database, so I write "getDataSource(String driver,String url, String username,String password)" function that will return BasicDataSource variable. I save…
-1
votes
3 answers

DBCP Connection pool

Below is my DBCP Connection Pool configuration,
Srinivasan
  • 11,718
  • 30
  • 64
  • 92
-1
votes
1 answer

Configure DBCP inside of Tomcat

I am trying to inject DataSource into Servlet. Finally I've annotated datasource field with @Resource and some DBCP's BasicDataSource was injected there. But it has no configuration. No db url, no driver class, nothing. Naturally I got…
Aleksandr Kravets
  • 5,750
  • 7
  • 53
  • 72
-1
votes
1 answer

How to limit DB Connections in massive scale Java App

I have a Java app with more than 100 servers. Currently each server opens up connections to 7 database schemas in a relational databases (logging, this, that, the other). All schemas connect to the same DB cluster, but its all effectively one…
cmdematos
  • 883
  • 4
  • 12
  • 24
1 2 3
26
27