Subject: RE: Invoking XSLT styling from a Java servlet
From: "Conal Tuohy" <conalt@xxxxxxxxxxxxxxx>
Date: Fri, 28 Jun 2002 08:09:02 +1200
|
> Transformer transformer = tFactory.newTransformer(xsl_ss);
>
> The javadocs mention this for the newTransformer() method:
> "Care must be
> given not to use this object in multiple threads running
> concurrently".
> I am not running multiple threads in my servlet. So, I can't imagine
> that that is the problem.
One possibility: unless your servlet implements the interface
SingleThreadModel, the servlet engine (Tomcat, in this case) will invoke it
on multiple threads. So you may have a multi-threaded situation without
realising it.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|