This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JDBC and the fly likes How to create a class for providing database connection pool(5 connections) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to create a class for providing database connection pool(5 connections)" Watch "How to create a class for providing database connection pool(5 connections)" New topic
Author

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

Sisir Chanda
Greenhorn

Joined: Jan 03, 2005
Posts: 11
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
WRONG FORUM! Moving.....
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to create a class for providing database connection pool(5 connections)