This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Using Apache DBCP 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 this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Using Apache DBCP " Watch "Using Apache DBCP " New topic
Author

Using Apache DBCP

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi ,


I know how to use Apache DBCP Connection Pool when using with Hibernate .

But can anybody please tell me how to use DBCP in a Applcation without using Hibernate .

Thanks in advance .


Save India From Corruption - Anna Hazare.
Ajay Vikas
Ranch Hand

Joined: Nov 08, 2006
Posts: 66

Please go ahead in using apache dbcp.jar and start using connection pooling mechanism.

--
Ajay.
SCJP 1.4
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17149
    
  27

Apache DBCP is the default pooler for Tomcat, and it comes as part of the stock install download. To use it, just follow the instructions on the Tomcat site for configuring a JDBC datasource.

Tomcat supports pluggable connection poolers, so while DBCP is the default, you have the option to use alternative connection poolers if you need to.


An IDE is no substitute for an Intelligent Developer.
 
wood burning stoves
 
subject: Using Apache DBCP
 
It's not a secret anymore!