• 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 ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

Are there any ready to use database connection pool source code?

 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks in advance.
Liang
 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Up until today, I was using PoolMan, which is available on Sourceforge.
It turned out to be not the right product for us for a couple of reasons (seems to start a slew of threads, and I found a ClassCastException bug in the PooledConnection implementation), so what we are doing now is just using the Jakarta commons object pooling classes. I wrote up a JDBC connection factory this morning in about 15 minutes and am setting up testing for it right now.
Funnily, if you go to the original PoolMan site you are told that it is no longer supported - it recommends you use Jakarta commons. No mention of the sourceforge site...
 
liang gu
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, John. Any one else has other recommendations?
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try this link:
JDBC Connection Pool
Rene
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://www.webdevelopersjournal.com/columns/connection_pool.html
Has a good discussion and source download for a connection pool manager and pools. I've run this for a little while now, and it works great. I've used it in multiple different configurations and haven't run across any major issues.
Kat
>^..^<
reply
    Bookmark Topic Watch Topic
  • New Topic