I am using a play application (play-java 2.2.1, bonecp 0.8.0.RELEASE) that uses BoneCp to access a mysql database, and did not found a way to set the statement timeout for all statements (conf doc here). All I found is how to do ir programmatically:
java.sql.Statement.setQueryTimeout(int)
I will probably end up wrapping all created statements with an object that will set that value, but I thought I could set it in the configuration file.
I know I could use spring or some other framework and set some kind of "transaction timeout" value, but I'd like to avoid that.
Thanks!