Hi, sedj, I'm used the oracle connection pooling
in a PoolConnection Class that I wrote:
package com.urbi.db;
import java.sql.SQLException;
import oracle.jdbc.pool.OracleConnectionCacheImpl;
public class ConnPool
{
private static oracle.jdbc.pool.OracleConnectionCacheImpl con;
private static String driverType;
private static String user;
...
public ConnPool()
{
}
public void setSID(String SID)
{
this.SID = SID;
}
...
public static void createConnectionPool() throws SQLException {
try {
con = new OracleConnectionCacheImpl();
con.setDriverType(driverType);
con.setUser(user);
con.setPassword(password);
con.setServerName(serverName);
con.setDatabaseName(databaseName);
con.setNetworkProtocol(networkProtocol);
con.setPortNumber(portNumber);
con.setMinLimit(minLimit);
con.setMaxLimit(maxLimit);
con.setCacheScheme(con.FIXED_WAIT_SCHEME);
System.out.println("ConnectionPoolOracle (Global) created...");
} catch (SQLException e) {
e.printStackTrace();
throw new SQLException("Failed connection to database");
}
}
}
But I read the link's that you send me, and I decide to use the Free Database Connection Pooling Software instead of default tomcat connection pool. otherwise if you recomend me the default tomcat connection pool ,
because we manage a huge number of transacion and i need to know what connection pool of those have better performance.
thanks in advance.