Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need help on Connection Pooling

 
Mayilsamy Annamalai
Ranch Hand
Posts: 35
Google Web Toolkit Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm developing a simple application. I'll like to implement the connection pooling in my application. When i searched the net i can able to see lot of examples but at end of the session i'm not able to understand even a single method.. Could any please explain me which is best and we can go for it..
 
Mayilsamy Annamalai
Ranch Hand
Posts: 35
Google Web Toolkit Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is any body can help out??
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34179
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which connection pooling library were you looking at? Typically there is only one method - getConnection() if that. Most of the time there is just a connection pool driver. You say how many connections you want and everything happens behind the scenes.
 
Rob Spoor
Sheriff
Pie
Posts: 20511
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mayilsamy Annamalai wrote:Is any body can help out??

PatienceIsAVirtue.
 
Brian Enochson
Greenhorn
Posts: 14
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A common free one used in the Java world is Apache Database Connection Pool (DBCP). http://commons.apache.org/dbcp. This is specifically for pooling of data sources and builds on the common pool library which provides generic object pooling functionality.

DBCP has a couple of versions, 1.4 is for Java 6 and 1.3 for Java 5 and earlier. It comes with a good set of examples and there is plenty of reference material on the web.

As to your post, were you looking for a recommendation then I can say I have used this before. If you need examples of how to use it, I would look first in the examples.

Brian
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic