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: hibernate.c3p0.xxx vs c3p0.xxx
PostPosted: Sat Sep 12, 2009 10:30 am 
Beginner
Beginner

Joined: Sat Sep 12, 2009 10:20 am
Posts: 44
I'm trying to determine which parameters I should be using.. The hibernate.c3p0 versions or the c3p0 versions.

Specifically:
Code:
    <property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>
    <property name="c3p0.max_size">100</property>
    <property name="c3p0.idleConnectionTestPeriod">300</property>

VS:
Code:
    <property name="hibernate.c3p0.idle_test_period">14400</property>
    <property name="hibernate.c3p0.preferredTestQuery">select 1;</property>


Also, is the connection provider class required? I haven't been using it...


Top
 Profile  
 
 Post subject: Re: hibernate.c3p0.xxx vs c3p0.xxx
PostPosted: Sat Sep 12, 2009 1:12 pm 
Beginner
Beginner

Joined: Sat Sep 12, 2009 10:20 am
Posts: 44
I got to the bottom of this and C3P0 is working,

but now it is complaining that hibernate.c3p0.xx and c3p0.xx are both set.
I've only set c3p0.xx in my hibernate.cfg.xml file

How could this be seeing both?


Quote:
08:02 WARN [main] connection.C3P0ConnectionProvider - Both hibernate-style property 'hibernate.c3p0.idleTestPeriod' and c3p0-style property 'c3p0.idleTestPeriod' have been set in hibernate.properties. Hibernate-style property 'hibernate.c3p0.idleTestPeriod' will be used and c3p0-style property 'c3p0.idleTestPeriod' will be ignored!
STDOUT Sep 12 12:08:02 WARN [main] connection.C3P0ConnectionProvider - Both hibernate-style property 'hibernate.c3p0.max_size' and c3p0-style property 'c3p0.max_size' have been set in hibernate.properties. Hibernate-style property 'hibernate.c3p0.max_size' will be used and c3p0-style property 'c3p0.max_size' will be ignored!
STDOUT Sep 12 12:08:02 WARN [main] connection.C3P0ConnectionProvider - Both hibernate-style property 'hibernate.c3p0.min_size' and c3p0-style property 'c3p0.min_size' have been set in hibernate.properties. Hibernate-style property 'hibernate.c3p0.min_size' will be used and c3p0-style property 'c3p0.min_size' will be ignored!
STDOUT Sep 12 12:08:02 WARN [main] connection.C3P0ConnectionProvider - Both hibernate-style property 'hibernate.c3p0.timeout' and c3p0-style property 'c3p0.timeout' have been set in hibernate.properties. Hibernate-style property 'hibernate.c3p0.timeout' will be used and c3p0-style property 'c3p0.timeout' will be ignored!
STDOUT Sep 12 12:08:02 WARN [main] connection.C3P0ConnectionProvider - Both hibernate-style property 'hibernate.c3p0.preferredTestQuery' and c3p0-style property 'c3p0.preferredTestQuery' have been set in hibernate.properties. Hibernate-style property 'hibernate.c3p0.preferredTestQuery' will be used and c3p0-style property 'c3p0.preferredTestQuery' will be ignored!
STDOUT Sep 12 12:08:02 WARN [main] connection.C3P0ConnectionProvider - Both hibernate-style property 'hibernate.c3p0.acquire_increment' and c3p0-style property 'c3p0.acquire_increment' have been set in hibernate.properties. Hibernate-style property 'hibernate.c3p0.acquire_increment' will be used and c3p0-style property 'c3p0.acquire_increment' will be ignored!
STDOUT Sep 12 12:08:02 WARN [main] connection.C3P0ConnectionProvider - Both hibernate-style property 'hibernate.c3p0.max_statements' and c3p0-style property 'c3p0.max_statements' have been set in hibernate.properties. Hibernate-style property 'hibernate.c3p0.max_statements' will be used and c3p0-style property 'c3p0.max_statements' will be ignored!
STDOUT Sep 12 12:


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.