This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Invoking XSLT styling from a Java servlet


>    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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]