-->
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: c3p0connectionprovider configuration really necessary?
PostPosted: Wed Apr 23, 2008 2:04 pm 
Beginner
Beginner

Joined: Wed Mar 19, 2008 12:10 am
Posts: 36
if i'm using spring to manage my hibernate sessionfactory, and i configure my datasource to point to my tomcat6 jndi datasource w/ c3p0, is there a need to setup hibernate to use connection pooling via Hibernate's C3P0ConnectionProvider? or will it automatically use c3p0 if it is setup in tomcat?

also, what are some good configuration properties to set for a site expected to grow? im going to be using mysql 5


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 24, 2008 5:33 pm 
Red Hat Associate
Red Hat Associate

Joined: Mon Aug 16, 2004 11:14 am
Posts: 253
Location: Raleigh, NC
The c3p0 properties will be ignored in Hibernate if you're using a Tomcat-provided DataSource. You can remove them.

As for the other question, do some googling for MySQL tuning, etc. The best thing for you to do is create load test scripts and establish a baseline before you do any tuning at all.

_________________
Chris Bredesen
Senior Software Maintenance Engineer, JBoss


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.