Hi,
I have a SESSION scope Java Bean in a JSP page. It used a javax.xml.parsers.SAXParser
and a subclass of org.xml.sax.helpers.DefaultHandler, as:
public class myClass {
SAXParser parser;
MyHandler handler; //extends org.xml.sax.helpers.DefaultHandler
...
}
My question is: what is the size of the SAXParser in general? (assume use default
implementation crimson parser). Will it make a difference in performance if I create
an external APPLICATION scope pool to store a group of SAXParsers and Handlers, and
get/return instances from pool each time the page get executed? Also, do I need to
mark the SAXParser and Handler as transient?
Thanks,
Nianwei
===========================================================================
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