Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

ConnectionPooling for standalone java app

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I want to implement connection pooling for a stand alone java application. I picked up one of the simple connectionPool classes from the internet which checked-in and checked-out connections from the pool, and plugged it into my application but I have been asked to use something similar to a tomcat connection pool. I cant use a server for implementing connection pool, then how shall i do it?

Please help.
 
Marshal
Posts: 64704
225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"mk gpta" please read the important administrative private message I just sent you.
 
mayank gupta
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, i took correct measures as per the naming policy. I'm sorry i missed that earlier.
 
Campbell Ritchie
Marshal
Posts: 64704
225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you.
 
mayank gupta
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you please help me with the problem i posted?
 
Campbell Ritchie
Marshal
Posts: 64704
225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm afraid I don't know about connection pooling.

Anybody else?
 
Bartender
Posts: 9559
12
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat uses DBCP for a connection pool.
 
mayank gupta
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont want to use tomcat or any other server. My application is standalone and does not run using tomcat or anything. I have to implement connection pooling the way tomcat does it. Thats what I'm asking...how does tomcat do it?
I went through thr code but couldnt get much from it.
Please help.
 
Joe Ess
Bartender
Posts: 9559
12
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat uses DBCP for a connection pool. Have you tried reading the Java Doc for DBCP?
[ December 22, 2008: Message edited by: Joe Ess ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!