I am integrating Hibernate 4 with BoneCP and wanted to understand what these properties mean:
<property name="idleConnectionTestPeriod">30</property>
<property name="idleMaxAge">240</property>
<property name="connectionTestStatement">select 1 from db.table limit 1</property>
My application is one which needs to maintain constant connection to the mysqldb 24x7
Does it mean that every 30 minutes the test statement will get executed? and that connection will become stale after 240 minutes ? How do I make my connections permanent because with this configuration occasionally I am getting
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed.