BSD Ports

java/apache-commons-dbcp 2.12.0 MidnightBSD

Apache Commons Database Connection Pool

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
Apache-2.0
Categories
java, databases

Description

The DBCP Component

Many Jakarta 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. There are several Database Connection Pools already available, both within Jakarta products and elsewhere. This Commons package provides an opportunity to coordinate the efforts required to create and maintain an efficient, feature-rich package under the ASF license. The commons-dbcp package relies on code in the commons-pool package to provide the underlying object pool mechanisms that it utilizes.

In the other systems

SystemPortVersion
MidnightBSDjava/apache-commons-dbcp2.12.0
FreeBSDjava/apache-commons-dbcp2.12.0_3
DragonFlyjava/apache-commons-dbcp2.12.0

Install

Binary package:

mport install apache-commons-dbcp

From mports:

cd /usr/mports/java/apache-commons-dbcp && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	apache-commons-dbcp>0:java/apache-commons-dbcp

Dependencies

As this port's Makefile names them.

Runtime 1

Run dependencies 1

No port depends on this one.

Configuration

Options name: java_commons-dbcp

OptionDefaultDescription
DOCSoff
USES
java
Service scripts
none

Files

distinfo 1
FileSizeSHA256
commons-dbcp2-2.12.0-bin.tar.gz2.486619e+0654f7444f899980cadf83bdc4220d132bdfdce88e44856f1fb3f459513a58b264
Master sites 1
  • https://archive.apache.org/dist/commons/dbcp/binaries/