This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes Connection pool  -  Own implementation / DBCP / c3p0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Connection pool  -  Own implementation / DBCP / c3p0" Watch "Connection pool  -  Own implementation / DBCP / c3p0" New topic
Author

Connection pool - Own implementation / DBCP / c3p0

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1372
We have our own connection pool implementation. I am thinking of implementing connection pool using DBCP / C3P0. Can we get better performance using DBCP / c3p0 than our own connection pool implementation ?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30138
    
150

kri shan wrote: Can we get better performance using DBCP / c3p0 than our own connection pool implementation ?

Probably. Your implementation is highly unlikely to be optimized (or bug free for that matter.)
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3703
    
    5

This falls under the category of 'reinventing the wheel'. There are people spending a lot of time and energy building things like database connection pools and unless you have a strong belief these implementations are flawed, better to use their work.

Reminds me of an old programmer adage... "Good programmers write good code, great programmers steal good code. "


My Blog: Down Home Country Coding with Scott Selikoff
Wallace Wadge
Greenhorn

Joined: Nov 02, 2009
Posts: 1
kri shan wrote:We have our own connection pool implementation. I am thinking of implementing connection pool using DBCP / C3P0. Can we get better performance using DBCP / c3p0 than our own connection pool implementation ?


You might want to have a look at BoneCP - according to my benchmarks, available on the site, it's faster than both C3P0 and DBCP.

Disclaimer: I'm the author so I can't be unbiased

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connection pool - Own implementation / DBCP / c3p0
 
Similar Threads
Database Connection pool in struts
Connection Pool
Spring Framework and Hibernate
connection pool ? (JBoss / DBCP / c3po )
How to configure c3p0 connection pool weblogic ??