Regular |
|
Joined: Tue Sep 26, 2006 11:37 am Posts: 115 Location: Sacramento, CA
|
What connection pool are you using? Multiple issues can create this problem. The most likely is that your tcp/ip socket to the database just drops. If you are using c3p0 you can set it up to check idle connections after a given interval, it looks like 1 hr would do it in your case.
This error can also be generated if you are running sql outside a transaction or if there is some error in the mysql server. The first cause above is the most likely in your case.
I hope this helps,
Marius
|
|