I have a scenario in my solution, that when the user clicks on a save button the transaction is committed and the connection is closed.
At a given time if we try to close an unused preparedStatement (that depends on the closed connection) to release resources the application crashes without "telling" us that the connection is closed.
The resources that are linked on a connection shouldn't be released after closing the connection? Or when trying to close the preparedStatement after the connection an exception should occur?
Yes, all resources owned by a Connection are released when the Connection is released. I think we have a bug that is causing your application to crash when a PreparedStatement from a released Connection is closed. We will fix that. A ULjException will be thrown if you try to close a PreparedStatement owned by a released Connection.
answered 31 Jan '12, 10:13