It's not a secret anymore!*
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
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: 15952
    
  19

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using Apache DBCP
 
Similar Threads
Problem in ConnectionPool
Hibernate Connection Pool conf versus App Server Connection Pool conf
Connection pooling outside the container.
Pleaes Help: Structs and Connection Pooling...
Required details of Connection Pooling