• 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:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

need help on Connection Pooling

 
Ranch Hand
Posts: 35
Google Web Toolkit PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Raga Jana
Ranch Hand
Posts: 35
Google Web Toolkit PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is any body can help out??
 
author & internet detective
Posts: 40746
827
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 22449
121
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Mayilsamy Annamalai wrote:Is any body can help out??


PatienceIsAVirtue.
 
Greenhorn
Posts: 14
Oracle Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic