EasyBeans is an open source implementation by ObjectWeb of the EJB3 container specification.
Project
Developer
Wiki
|
|
|
Thanks for the patch.
One of the problem is that EasyBeans needs to compile with either JDK 5 or 6. But the isValid(int timeout) method is only available by using JDK 6 So if the patch is applied, it doesn't compile/work on a JDK 5. By using a checkLevel of 2, a statement is executed on the remote side so this can work as you are expecting it but maybe you still want a checkLevel of 1 ? I need some time to adapt the patch for both JDK. You can also propose a patch that work for JDK 5+ Thanks for your report and happy new year ;-) I didn't know isValid() was only available on JDK6 :)
I tried the checkLevel 2, but it seems that the default executed statement is NULL, and the MySQL driver doesn't like this very much. A good solution could be to adapt the executed statement to make it more compatible for people running on JDK5...I'll try to see what I can do as soon as possible. Happy new year to you too :) Cheers. Problem fixed by allowing to define in the JDBCPool component XML configuration the test statement.
Then with the correct checkLevel value, the test statement will be executed. The default statement is "select 1 from INFORMATION_SCHEMA.SYSTEM_USERS" (as hsqldb is provided by EasyBeans) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||
Apply in module root (where the pom.xml is)