phuffff...this java is getting on my nerves....ihad to implement pooling for teh first time in dotNet like yrs ago...i looked at msdn great articles and explanations...it was implemented, bulk tested on oracle n sql server in no time and code went live few days later.... but i really cant find such basic thing straight fwd way in java...evry ones pouring evry thing in and ive found like 10 ways to implement pooling not a sinlge one is clean n straigh forward...or do i have to re invent the wheel and implement a pooling class my self....
here is what i found for thin client jdbc oracle..
OracleConnectionPoolDataSource ocpds = new OracleConnectionPoolDataSource();
ocpds.setURL("jdbc

racle:thin:@[IP]:1521:[SID]");
ocpds.setUser("usr");
ocpds.setPassword("pwd");
PooledConnection pc = ocpds.getPooledConnection(); //Which pool what pool, did i specify any pool ,whtas the pool size yes default is 0 how can i change it. no //documentation at all
Connection con = pc.getConnection();
...do something...
con.Close();
----QUESTIONS NOT ANSWERED IN DOCUMENTATION ;NO DETAILED EXPLAINATION OF WHATS GOING ON IN THESE CLASSES-- GOOGLED IT AS WELL---
Q1 - How can i set the initial pool size, the max pool size and the connection wait time if all connections r busy; i tried to set connection cache enable true and the cache property but getting exception
"Connection Caching Not Enabled or Not a Valid Cache Enabled DataSource"; didnt find any answer for this
Q2 The OracleConnectionCacheImpl is deprecated n lots of example use this class so i guess they r all void now?
Q3 How do i return a connection back to a pool; Con.close would return it?
Q4 Some example say call con.close and then pool.close which closes the physical connection so whts the use of pooling then ??
please provide a simple sstright fwd way for oracle thin client connection pooling ; i chkd the OCI n it has good simple features...