This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Invoking XSLT styling from a Java servlet
- From: "Conal Tuohy" <conalt at paradise dot net dot nz>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 28 Jun 2002 08:09:02 +1200
- Subject: RE: [xsl] Invoking XSLT styling from a Java servlet
- Reply-to: xsl-list at lists dot mulberrytech dot com
> 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