-->
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.  [ 1 post ] 
Author Message
 Post subject: HOw to know whether C3P0 connection pool is working or not?
PostPosted: Thu Jul 24, 2008 8:10 am 
Newbie

Joined: Tue Nov 13, 2007 1:09 pm
Posts: 7
iam using c3p0 connection pooling along with hibernate.
HOw to check whether c3p0 is configured properly with Hibernate and actually working?


----------------------------------------------
Along with hibernate iam using spring
---------------------------------------------
Below is sample configuration file which sets c3p0 properties

<property name="hibernateProperties">

<props>
<prop key="hibernate.dialect">org.hibernate.dialect.MySQL5Dialect</prop>
<prop key="hibernate.show_sql">false</prop>
<prop key="hibernate.search.directory_provider">org.hibernate.search.store.FSDirectoryProvider</prop>
<prop key="hibernate.search.default.indexBase">D:\home\httpfuse\indexes</prop>
<!-- Deployment path -->
<!-- <prop key="hibernate.search.default.indexBase">/home/temphttpfuse/indexes</prop> -->
<!-- client path /home/temphttpfuse/indexes -->
<!-- <prop key="hibernate.search.default.indexBase">D:\home\httpfuse\indexes</prop> -->

<!-- Connection pooling and autoReconnect Properties -->

<prop key="hibernate.connection.autocommit">true</prop>
<prop key="hibernate.connection.pool_size">10</prop>

<!-- c3p0 -->
<prop key="hibernate.c3p0.acquire_increment">1</prop>
<prop key="hibernate.c3p0.idle_test_period">60</prop>
<prop key="hibernate.c3p0.timeout">120</prop>
<prop key="hibernate.c3p0.max_size">60</prop>
<prop key="hibernate.c3p0.min_size">10</prop>


<!-- Connection auto reconnect after long inactivity -->
<prop key="connection.autoReconnect">true</prop>
<prop key="connection.autoReconnectForPools">true</prop>
<prop key="connection.is-connection-validation-required">true</prop>

</props>
</property>


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

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.