A couple of times while using ibatis for accessing database we observe a ObjectClosedException / StaleConnectionException resulting in a failure of the application. The usual suspects of application server and improper connection parameters were validated - this exception occurs mostly during the first access of ibatis (we use ibatis and plain jdbc in our application), and doesnt occur when we use jdbc to access the database.
Any input/guidance on this would be appreciated.
We user ibatis 2.1 jar files with WebSphere 6 and DB2 V9.1 for z/OS.