A web-app I'm developing is expected to have many (possibly as many as 40-50) servlets, some will be updating a database others retrieving information from a database. All requests will be POSTs containing XML-formatted information. Some of the servlets will be heavily used (retrieving the core objects for the app), while others (more administrative) will be rarely used.
My question is this: is there any real advantage to using a pool of SAXParsers, rather than getting a new instance from the SAXParserFactory class each time a request needs to be parsed? Obviously, reusing a parser from a pool avoids the overhead of creating a new instance, but is there a significant performance gain to be realised in using a pool? If there is a significant gain, is there an existing implementation available, or is this a "roll-your-own" scenario? Or, is this something that should even be considered? I guess this is another of the "best practices" type of question. This web-app will be deployed on a Tomcat 5.5.x server with Java 1.5, if it makes any difference. Thanks in advance, Gord --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]