[PATCH] Fixed open cursor leaks in Oracle by closing all ResultSets and PreparedStatements

Michael Jaszczyk <[email protected]>
Newsgroups gmane.comp.java.openjms.devel
Message-ID <[email protected]>
-- 
PIRONET NDH
Michael Jaszczyk - Director Software
Maarweg 149 - 161, 50825 Cologne - Germany 
Phone: +49 (0)221 770 1720 - Fax: +49 (0)221 770 1005 
<mailto:[email protected]> - <http://www.pironet-ndh.com/>
BatchingRdbmsAdapter.patch (text/plain, 968 B)
Index: BatchingRdbmsAdapter.java
===================================================================
RCS file: /cvsroot/openjms/openjms/src/main/org/exolab/jms/persistence/BatchingRdbmsAdapter.java,v
retrieving revision 1.10
diff -u -w -i -b -r1.10 BatchingRdbmsAdapter.java
--- BatchingRdbmsAdapter.java	28 Oct 2003 07:27:29 -0000	1.10
+++ BatchingRdbmsAdapter.java	5 Jan 2004 09:01:21 -0000
@@ -482,11 +482,7 @@
                     _messages.clear();
                     _handles.clear();
                 } catch (PersistenceException exception) {
-                    try {
-                        connection.rollback();
-                    } catch (Exception ignore) {
-                        // ignore
-                    }
+                 	SQLHelper.rollback(connection);
                     _log.error("Failure in flush()", exception);
                 } catch (Exception exception) {
                     _log.error("Failure in flush()", exception);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.