Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Databases
»
JDBC
Author
Connection Pool
kri shan
Ranch Hand
Joined: Apr 08, 2004
Posts: 1300
posted
Jan 07, 2005 04:18:00
0
In what situation we write our own connection pool instead of using the Appserver's Connection Pool service ?
Shailesh Chandra
Ranch Hand
Joined: Aug 13, 2004
Posts: 1076
I like...
posted
Jan 07, 2005 04:22:00
0
If connection pool is available from App server, then I dont think we should re invent the wheel.
If still there is some scenario where we should use own connection pool then I will really welcome.
becuase creating connection pool needs lot of consideration otherwise pool can be very nasty to system.
thanks
Gravitation cannot be held responsible for people falling in love ~
Albert Einstein
kri shan
Ranch Hand
Joined: Apr 08, 2004
Posts: 1300
posted
Jan 09, 2005 23:01:00
0
Hi Shailesh, What scenario we use own connection pool ?
Adeel Ansari
Ranch Hand
Joined: Aug 15, 2004
Posts: 2874
posted
Jan 10, 2005 02:48:00
0
Originally posted by kri shan:
Hi Shailesh, What scenario we use own connection pool ?
If there is some Shailesh will welcome.
you can use DBCP from Apache, a ready made API, to implement a connection pooling mechanism. I use it with
Tomcat
.
I agree. Here's the link:
http://aspose.com/file-tools
subject: Connection Pool
Similar Threads
Connection from DataSource
Which one is the best ?
Getting connection from pool?
Front Controller pattern and DataSource / Connection sharing
enterprise application with many users
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter