-->
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 + C3P0
PostPosted: Thu Jul 31, 2008 5:50 pm 
Newbie

Joined: Tue Oct 23, 2007 4:49 pm
Posts: 1
Hello All:

I havent really been able to find an answer.

I setup connection pooling within my dataSource using class = "com.mchange.v2.c3p0.ComboPooledDataSource" and configure c3p0 within the dataSource.

And, I see c3p0 initializing in logs "INFO: Initializing c3p0 pool com.mchange.v2.c3p0.ComboPooledDataSource..." and what looks like an injection into hibernate "17:37:23.765 INFO o.s.o.h.HibernateTransactionManager:390 - Using DataSource [com.mchange.v2.c3p0.ComboPooledDataSource...".

But I did not set the hibernateProperties mappings for c3p0. Everywhere I see says that I must map my c3p0 through hibernateProperties or hibernate.properties file. So is my c3p0 connection pooling working like it shows? Is there a way to test this?

Maybe there is a log seting? I have logback.xml setting for com.mchange.v2.c3p0 = debug but I dont see anything about creating a connection, etc.


Please help, thanks.


Environment:
Hibernate 3.5
Spring 2.5


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.