Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

Need some good connection pool

Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I am planning to use some good connection pool class in my project. I am interested in pooling capability as well as statement caching capability of the pool. I am thinking of using the pool class provided by oracle thin driver (OracleConnectionCacheImpl.class).

Sample code

OracleConnectionPoolDataSource ocpds = new OracleConnectionPoolDataSource();

OracleConnectionCacheImpl cache = new OracleConnectionCacheImpl(ocpds);
/* Taking connection */
return cache.getConnection();

Will I get statement caching for all the connection created in the pool mentioned above or we need to call the ((OracleConnection)conn).setStmtCacheSize(10) method om each and every connection object of this pool.

Kindly mail me your suggestions.

Thanx and regards,

Prashant Parab
We noticed he had no friends. So we gave him this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
    Bookmark Topic Watch Topic
  • New Topic