I want to setup a connection pool for a Oracle DB in a Helper class.
public class DbConnection {
// Data source for the pooled connection
private static Ora
You should not use a ConnectionPoolDataSource directly. It is intended for use by a connection pool in an application server. It does not provide connection pooling itself. See also https://stackoverflow.com/a/12651163/466862
In other words: You need to use an actual connection pool, like DBCP, c3p0 or BoneCP, or the UCP (Universal Connection Pool).