[jdom-interest] SAXBuilder in JSP session scope object
LIU Nianwei
liunw at yahoo.com
Tue Jun 26 11:17:23 PDT 2001
I have a SESSION scope Java Bean in a JSP page using a
SAXBuilder. Assume we use the JAXP default SAXParser
crimson parser.
My question is: Is there a big difference in memory
usage between the following two approaches:
1. Each session object has its own SAXBuilder.
2. create an external APPLICATION scope synchronized
pool to store a group of SAXBuilders, and get/return
instances from pool each time the page get executed.
In short, is SAXParser instances expensive?
Also, do I need to mark the SAXBuilder as transient
in the JavaBean?
Thanks very much,
Nianwei
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
More information about the jdom-interest
mailing list