Use a connection pool. Easy, well-documented, obvious. (At the very least,
don't reconnect on every page request...)


>From: "Shah, Maulik (GEAE, Foreign National)" <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>     reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Performance improvement
>Date: Mon, 19 Feb 2001 10:34:05 -0500
>
>Hi All,
>
>
>         The scenario is, I'm having 5 lstboxes in a single page. Each
>combo
>box needs to be populated from different table from the database. I want to
>come up with an efficeient way of retrieving data for all the 5 list boxes
>once when a database connection is opened.
>
>Currently the code is : - calling a method in a bean for each listbox
>...each method is opening and closing the connection .... this is very slow
>..and I need to improve the performance.
>
>  Should I define vectors / hastable that can hold the values for each of
>the
>listboxes ..?
>
>or is there anyway, where I can have multiple resultsets.

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to