This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes Connection pool Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Connection pool" Watch "Connection pool" New topic
Author

Connection pool

Costa Lamona
Greenhorn

Joined: Sep 17, 2006
Posts: 29
Hi

Is there a standard way (or sun way) to create a pool, I found that in this book
http://java.sun.com/developer/onlineTraining/Programming/JDCBook/

but because the book is sense 1999, I think now there must be some package (rather than hibernate) doing that!!

Thanks
Carey Evans
Ranch Hand

Joined: May 27, 2008
Posts: 225

If you're using an application server like Glassfish, Websphere, etc., then you'll use the connection pool that comes with it.

Otherwise, there are some standalone connection pools that you can use instead. I'm familiar with C3P0, DBCP and BTM. The last one is especially nice because it comes with support for JNDI and JTA, just like an application server.
 
 
subject: Connection pool