Subject: Re: [xsl] Templates.newTransformer synchronization From: "Mohsen Saboorian" <mohsens@xxxxxxxxx> Date: Mon, 17 Jul 2006 17:12:54 +0330 |
I cached a number of transFactory.newTemplates(xslSource) instances inside a synchronozed map. Then used a servlet to generate the html output of the transformation. Using Microsoft Application Center Test (web based stress tester), with 30 simultaneos connections, and 1000 times of a request to that servlet Saxon: had no problem with that. Xalan:
On 7/17/06, Mohsen Saboorian <mohsens@xxxxxxxxx> wrote: > Hi, > I want to cache an instance of a Transformer (e.g. using > Templates.newTransformer()) in the application scope of a web > application (multi-threaded). Is there any synchronization problem > with this approach (using Saxon)?
Templates are thread-safe, according to this article (which is quite good):
http://www-128.ibm.com/developerworks/xml/library/x-jaxp2/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Templates.newTransformer , andrew welch | Thread | Re: [xsl] Templates.newTransformer , Mohsen Saboorian |
Re: [xsl] Templates.newTransformer , andrew welch | Date | Re: [xsl] Templates.newTransformer , Mohsen Saboorian |
Month |