× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



The QZDASOINIT job is launched when the connection is established.  The files 
are open when the SQL runs.

If you close the ResultSet, the Statement remains open (as does the 
Connection).  If you close the Statement (without
closing the ResultSet) The Statement is closed but the Connection is still open 
and the ResultSet object still has
scope.

Normally, we open Connection, Statement, and Result Set and we close them in 
reverse order.  Just as a guess, it sounds
like either 1) you aren't closing everything and/or 2) you aren't closing them 
in the proper sequence.

Incidently, we were experiencing much the same issues as you were recently and 
found that a JavaBean wasn't closing
things properly... Once we fixed it, we went from 8 *pages* of QZDASOINIT jobs 
to 2 pages.

Does that help???

dan

-----Original Message-----
From: McCallion, Martin [mailto:martin.mccallion@misys.com]
Sent: Friday, October 04, 2002 11:35 AM
To: 'java400-l@midrange.com'
Subject: Relationship between JDBC Connections, Statements, ResultSets
and open data paths


Can anyone tell me whether there's an easy way of determining how JDBC
Connections, Statements (Prepared or otherwise) and ResultSets relate to
open files/ODPs?  For example, if I get a ResultSet from querying a
file, presumably that file will be opened.  If I run the same query
again, I would not expect it to be opened again; but if I run a
different query?  And if I close the ResultSet, should the file be
closed?
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) 
mailing list
To post a message email: JAVA400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
or email: JAVA400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.