-->
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: hibernate seems to ignore 3cp0 settings in hibernate.cfg.xml
PostPosted: Wed Nov 05, 2008 7:19 am 
Newbie

Joined: Wed Nov 05, 2008 6:58 am
Posts: 1
Hi all,

I'm trying to configure c3p0 with Hibernate Core 3.3.1.GA. According to the hibernate reference manual this is as simple as setting some configuration options in hibernate.cfg.xml. I have set the following:

<property name="hibernate.c3p0.idle_test_period">300</property>
<property name="hibernate.c3p0.min_size">1</property>
<property name="hibernate.c3p0.max_size">20</property>
<property name="hibernate.c3p0.timeout">5000</property>
<property name="hibernate.c3p0.max_statements">50</property>
<property name="hibernate.c3p0.acquire_increment">2</property>
<property name="hibernate.c3p0.validate">true</property>

When I start my program, the log outputs the following:

12:12:11,715 INFO DriverManagerConnectionProvider:64 - Using Hibernate built-in connection pool (not for production use!)

Why does hibernate ignore me wanting it to use c3p0?

I have used quite an amount of hours investigating this, with no results. According to the Internet, quite a lot of other people are also struggling with this..

-janpeder


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.