Hi, I hope you can help me. I have battling connection timeout issue with Mysql for a month now. I am using hibernate 2 with c3p0 connection pool. Hibernate config file below:
After certain period of time connection timesout, then once refreshed it works fine. Any suggestions are appreciated. Thank you.
Jeff Walker
Ranch Hand
Joined: Apr 25, 2004
Posts: 116
posted
0
Roman, I know virtually nothing about Hibernate, but you have a line in there that states: ... <property name="c3p0.timeout">600</property> ...
Try setting it to the Hibernate default of 0 instead of 600, then it may stay up until the JVM shutsdown. I think a zero means idle connections will never expire.
Jeff Walker
Bear Bibeault
Author and opinionated walrus
Marshal