• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

connection pool

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi everyone!!

can anyone please tell me how i can implement a connection pool?

thanks in advance,
Ravissant Markenday
 
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A quick Google came up with this
 
Ranch Hand
Posts: 502
jQuery Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My suggestion is not to re invent the wheel again. The are lots of Open source APIs available. If you are curious about how it is implemented, download the source code of any of those and do reverse engineering.
 
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are a number of connection pooling scripts that create vectors, shove connections into that vector, and manage that vector depending upon lifespan and utilization. Unfortunately, alot of those scripts tend to waste resources over the long term.

Because 'custom' connection pools have been so historically unreliable, pretty much every framework, from Struts to Cocoon, and app server, from JBoss to WebSphere, have their own connection pooling implementation. It is best to piggy-back off of those implementations.

What framework/app server are you using?

Cheers!

-Cameron McKenzie
 
reply
    Bookmark Topic Watch Topic
  • New Topic