c3p0 « Database « JPA Q&A





1. JPA\Hibernate database restart problem    stackoverflow.com

After database restart EntityManagerFactory's connection become invalid(persistence exception : broken pipe ) .I try to set properties on persistence.xml to solve problem but it is not worked.How can i ...

2. C3P0 hanged while trying to connect to database    forum.hibernate.org

Hi, I encountered this problem when one of the name search servers was down (2 was up). For explanation, the Application server will usually connect to the name search server to look up which server to connect based on the hostname, once it found the actual location of the database, it will connect to the database. After the last line, it ...

3. Hibernate + c3p0 + postgres produces infintely loostacktrace    forum.hibernate.org

Hi, sorry if this was discussed elsewhere but I couldn't find solution to my problem... I have problem with properly handling database outage. When I try to connect to database which doesn't exist following stacktrace is produced indefinitely: Code: My-App: 2010-10-25 15:00:48,042 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] WARN com.mchange.v2.resourcepool.BasicResourcePool - com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@3a807f -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed ...

4. hibernate/c3p0 reovery after db crash    forum.hibernate.org

Hi, Is Hibernate (or its pool) supposed to handle a database crash? Am I am supposed to handle a database crash if it happens when I get the connection from hibernate's session? I don't really see a way to tell hibernate to have its connection pool destroy a connection. I'm using Hibernate 2.1.4 connecting to an oracle9i db via c3p0, and ...

5. Cannot connect to database with C3P0    forum.hibernate.org

Hibernate version: 3.1 Name and version of the database you are using: MySQL 4.1 Debug level Hibernate log excerpt: info I'm using Apache Tomcat 5 --- Hello, My connection timed out, so I thought I'd switch from the in-built pooling to C3P0. I copied the c3p0-0.9.0.jar file into the lib directory of WEB-INF, and set the following properties in the hibernate ...