A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Object Relational Mapping
c3p0 project website broken... how to use it with hibernate without a container???
Joined: Oct 29, 2010
May 10, 2011 01:04:12
I have a
application that is running without a container (Jboss/tomcat).
I'm using JPA (hibernate) to map the db (SQL server).
I'm pretty new at this but I read that it's wise to use c3p0 for connection pooling.
The c3p0's project sites seems broken and I can't find the documentation.
My question is, is it ok to use c3p0 with a standalone java app?
And would it be enough to just add these lines to the "persistence.xml"?
<property name="hibernate.c3p0.max_size" value="25"/> <property name="hibernate.c3p0.min_size" value="5"/> <property name="hibernate.c3p0.timeout" value="5000"/> <property name="hibernate.c3p0.max_statements" value="0"/>
I agree. Here's the link:
subject: c3p0 project website broken... how to use it with hibernate without a container???
Hibernate and MySQL connection issues
How many statements can be cached by hibernate?..
com.mysql.jdbc.CommunicationsException MESSAGE: Communications link failure due to underlying except
Hibernate Connection Pool
How to create datasource for standalone application using JPA
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013