-->
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: C3P0
PostPosted: Tue May 16, 2006 4:03 am 
Beginner
Beginner

Joined: Fri Apr 28, 2006 7:48 am
Posts: 20
I have the following hibernate.cfg file
<property name="hibernate.c3p0.min_size"> 1</property>
<property name="hibernate.c3p0.max_size"> 1</property>
<property name="hibernate.c3p0.timeout"> 1000</property>
<property name="hibernate.c3p0.max_statements"> 50</property>
<property name="hibernate.c3p0.acquire_increment">1</property>

1.What happens when the max_size limit is reached?

2. Also, can anyone tell me what does max_statements mean? What happens when max_statements is reached?

3. Does c3p0 maintain a separate cache of SQL statements besides the hibernate 1st level cache. Is there a way to view this cache

4. I have configured a DataSource with the connection Pool of the datasource with following attributes
InitialCapacity=20
MaxCapacity=40
CapacityIncrement=2

I am using this DataSource for the hibernate to connect.
Which connection Pool will be given a preference, the C3P0 or the DataSource connection pool.

Please help!!!

Hope the C3P0 developers can assist me to understand this.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 16, 2006 4:10 am 
Pro
Pro

Joined: Mon Jan 24, 2005 5:39 am
Posts: 216
Location: Germany
Hi,

there are some basic explanations here:

http://www.hibernate.org/214.html

The full c3p0 documentation can be found here:

http://www.mchange.com/projects/c3p0/index.html

Hope this helps a bit.

_________________
dont forget to rate !


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.