on 2012 Jan 31 7:09 AM
Hi,
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?
tks,
Renato Pedrosa
Request clarification before answering.
Renato,
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
29 | |
9 | |
8 | |
7 | |
7 | |
7 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.