File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes Hibernate Connection Pooling. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate Connection Pooling." Watch "Hibernate Connection Pooling." New topic

Hibernate Connection Pooling.

aishwarya lakshmi

Joined: Nov 18, 2008
Posts: 20
In general we are configuring connection pooling in application server and again we are configuring in hibernate(in hiberate project).. What is the use of this... Both thing are Mandatory one.. please clarifiy me..

Many thanks
Joe Ess

Joined: Oct 29, 2001
Posts: 9168

Hibernate's own connection pooling algorithm is, however, quite rudimentary. It is intended to help you get started and is not intended for use in a production system, or even for performance testing. You should use a third party pool for best performance and stability. Just replace the hibernate.connection.pool_size property with connection pool specific settings. This will turn off Hibernate's internal pool.

Hibernate JDBC Properties

[How To Ask Questions On JavaRanch]
Ritesh Pareek
Ranch Hand

Joined: Nov 04, 2008
Posts: 50
use c3p0
I agree. Here's the link:
subject: Hibernate Connection Pooling.
jQuery in Action, 3rd edition