I finally found the cause of our connection leak in Websphere. I wanted to put a note here so that if anyone else runs into this they'll be able to fix it more quickly!!
Hibernate requires that the connection have autocommit=false, and the connection received from Websphere has autocommit = true. So, after retrieving the connection from the pool I set autocommit to false.
If I set autocommit back to true BEFORE returning the connection to the websphere pool, it works perfectly. If I don't, there's a very difficult to diagnose leak!
We're using Websphere 5, DB2 7.2 client, DB2 7.1 Database, and Hibernate 2.0.
Jenica[/list]
|