Thread:
 This stuff has changed in Hibernate 3 
 rsshilli   21 Oct 2008, 09:38 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: rsshilli (21 Oct 2008, 09:38) Replies: 0, Views: 477
Subject: This stuff has changed in Hibernate 3
Watch out - this advice is useless if you're using Hibernate 3.  

Most notably, it won't do anything because you need:

    <property
name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>


Also, Hibernate 3 supports more c3p0 configuration parameters, so they
will overwrite the c3p0.properties ones.

In Hibernate 3, this is all that I needed to get rid of the crappy
"Software caused connection abort: socket write error":

    <!-- Connection Pooling -->
    <property
name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>

    <property name="c3p0.max_size">100</property>
    <property name="c3p0.idleConnectionTestPeriod">300</property>

Ryan
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]