-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: What's the default connection pooling in Hibernate 3
PostPosted: Wed Dec 06, 2006 7:43 am 
Newbie

Joined: Wed Dec 06, 2006 7:33 am
Posts: 8
Location: Pakistan
Can anybody tell me what's the default connection pooling mechanism in hibernate 3. Is c3p0 used for default connection pooling in hibernate? if not then please tell me in detail.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 06, 2006 10:14 am 
Newbie

Joined: Thu Oct 05, 2006 11:34 am
Posts: 8
The default connection pooling mechanism available with hibernate is c3p0.
Hibernate ships with c3p0, so it is to configure by adding few configuration properties to your configuration file (hibernate.cfg.xml or hibernate.properties).

A simple hibernate c3p0 configuration is shown below:
<property name="c3p0.acquire_increment">1</property>
<property name="c3p0.idle_test_period">100</property> <!-- seconds -->
<property name="c3p0.max_size">100</property>
<property name="c3p0.max_statements">0</property>
<property name="c3p0.min_size">10</property>
<property name="c3p0.timeout">100</property> <!-- seconds -->


The other connection pooling mechanism that hibernate supports are:


_________________
.::hIBERNATe rOCKs::.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.