Hi there,
I tried to use both ways (resin pool & proxool) and decided to finally use proxool, because it is more flexible and also usuable from my non servlet applications. We have over 4.000.000 sql requests a day and everything works fine even if we restart mysql.
My configuration hibernate.properties with mysql and automatic reconnection:
!! Important is the relaxAutoCommit=true for mysql
##############################
### MYSQL Config for 4x or 3x servers ###
##############################
hibernate.dialect net.sf.hibernate.dialect.MySQLDialect
hibernate.connection.driver_class com.mysql.jdbc.Driver
hibernate.connection.url jdbc:mysql://127.0.0.1:3306/mpdb?relaxAutoCommit=true
hibernate.connection.username root
hibernate.connection.password ad12376
....
##############################
### Proxool Connection Pool###
##############################
## Properties for external configuration of Proxool
hibernate.proxool.house-keeping-sleep-time 30000
hibernate.proxool.house-keeping-test-sql select password("hallotest");
hibernate.proxool.maximum-connection-count 20
hibernate.proxool.maximum-connection-lifetime 4
hibernate.proxool.simultaneous-build-throttle 2
hibernate.proxool.maximum-active-time 500
hibernate.proxool.minimum-connection-count 4
hibernate.proxool.prototype-count 1
hibernate.proxool.statistics 1m,15m,1d
Andreas Bednarz
bednarz@id-on.de
http://www.id-on.de/noflash/index.html