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 configuration
PostPosted: Mon Nov 20, 2006 9:53 am 
Beginner
Beginner

Joined: Sun Nov 19, 2006 6:18 am
Posts: 28
hi,
I am using c3p0 for my connection pooling.My doubt is how to configure c3p0 for sending a test query for every connection every n seconds

My configuration of c3p0 done so far is

<property name="c3p0.acquire_increment">5</property>
<property name="c3p0.idle_test_period">5</property> <!-- seconds -->
<property name="c3p0.max_size">200</property>
<property name="c3p0.max_statements">100</property>
<property name="c3p0.min_size">10</property>
<property name="c3p0.timeout">94</property>
<property name="hibernate.transaction.auto_close_session">true</property>

c3p0.testConnectionOnCheckout=true
c3p0.maxConnectionAge=94
c3p0.automaticTestTable=tester


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 20, 2006 5:38 pm 
C3P0 Developer
C3P0 Developer

Joined: Tue Jan 06, 2004 8:58 pm
Posts: 145
AkshayAjmani,

You already have it with hibernate.c3p0.idle_test_period [or c3p0.idleConnectionTestPeriod]. I think you application is not seeing the configuration that you are setting -- maybe c3p0.properties is misnamed, or there's some other issue. Please post c3p0's version banner and configuration dump [logged at INFO on initialization] to verify that c3p0 is seeing the settings you think you are providing.

smiles,
Steve


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.