Pass the result set into a collection then instead of returning the
result set return the collection.
----- Original Message -----
From: Andi Setiyadi <[EMAIL PROTECTED]>
Date: Thursday, April 26, 2001 1:49 pm
Subject: Closing database connection
> Hi,
>
> I have a method that return a ResultSet. How do I close the database
> connection? If I call connection.close( ) before returning the
> resultset,it will also destroy the resultset.
> Thank you.
>
> Andi Setiyadi
>
>
________________________________________________________________________
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in
> the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http:
> Resources: http://java.sun.com/products/servlet/external-
> resources.htmlLISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html