GeeCON Prague 2014*
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


JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate Connection Pooling." Watch "Hibernate Connection Pooling." New topic
Author

Hibernate Connection Pooling.

aishwarya lakshmi
Greenhorn

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
Lak
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8914
    
    8

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


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Ritesh Pareek
Ranch Hand

Joined: Nov 04, 2008
Posts: 50
use c3p0


http://www.mkyong.com/hibernate/how-to-configure-the-c3p0-connection-pool-in-hibernate/
 
 
subject: Hibernate Connection Pooling.