JPA\Hibernate database restart problem
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 handle this case .I am using jpa 2 with hi开发者_开发知识库bernate (c3p0 as connection provider)
I hope this SO question helps you : hibernate c3p0 broken pipe
Also this article discussed reconnecting (testing connection) with c3p0
精彩评论