-->
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
PostPosted: Wed Feb 03, 2010 11:53 am 
Newbie

Joined: Wed Feb 03, 2010 11:43 am
Posts: 1
I've been following the instructions from https://www.hibernate.org/214.html#A3 to setup hibernate working with c3p0, but it seems it still uses the default connection intead of the c3p0 pool. It'll be much appreciated if someone here could kindly give some help.

- Hibernate 3.2.3.ga
-c3p0-0.9.1.jar is in lib directory
- log4j.logger.com.mchange=DEBUG
- cofigurations in hibernate.cfg.cml, and also I've tried to remove "hibernate." from the property name and it didn't work either
Code:
<property name="hibernate.connection.provider_class">
  org.hibernate.connection.C3P0ConnectionProvider
</property>
<property name="hibernate.c3p0.acquire_increment">1</property>
<property name="hibernate.c3p0.idle_test_period">100</property>
<property name="hibernate.c3p0.max_statements">0</property>
<property name="hibernate.c3p0.min_size">0</property>
<property name="hibernate.c3p0.timeout">30</property>


Top
 Profile  
 
 Post subject: Re: Hibernate + c3p0
PostPosted: Thu Feb 04, 2010 4:24 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
Please post your complete configuration file.

Can it be that you specify hibernate.transaction.factory_class to a class different to org.hibernate.transaction.JDBCTransactionFactory ?


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.