reconnect « Connection « JPA Q&A

1. hibernate c3p0 broken pipe

I'm using hibernate 3 with c3p0 for a program which constantly extracts data from some source and writes it to a database. Now the problem is, that the database might become unavailable ...

2. WebSphere-Hibernate-MySql connection issue(can not reconnect

Now I'm using Hibernate, MySql and Websphere, MySql has 8 hours timeout, after timeout, my application can't connect to MySql first, but second time it is ok. I tried to use C3P0 connection pool in hibernate configure file, but it is still unsucessful. the following is my cfg file. java:comp/env/jdbc/loyaltycentral