[Home] [By Thread] [By Date] [Recent Entries]
At 09:44 PM 1/28/00 +0100, Eric van der Vlist <vdv@xxxxxxxxxxxx> wrote:
The XSLServlet works in a servlet environment which is multi threaded and it wouldn't be safe to use the same object.
SAX says that a parser is reusable but not reentrant. To me, this means that a SAX parser is not thread-safe, so in any multi-threaded environment, you'd have to lock the parser. However, the longest operation is the parsing of the XSLT transformation which is done before the XSLProcessor is cached and therefore, this parsing is reused.
It's an interesting point that you brought up, however. It could be worthwile to cache the Sheet. It'd make for a lot of rigamarole, but it might be worth considering. bob Robert Streich Calico Commerce rstreich@xxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



