Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to create a class for providing database connection pool(5 connections)  RSS feed

 
Sisir Chanda
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to create a class which will provide me 5 or cusomizable number of connection. It will be something like connection(oracle data base) pooling. I can create it by opening multiple connection simultaneously...But is it there any other standard way to do so.

Please help me out.
Thanks in advance.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WRONG FORUM! Moving.....
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you looked at the Jakarta DBCP project?
http://jakarta.apache.org/commons/dbcp/

You can also find the source code to a connection pool in
http://pdf.coreservlets.com
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!