xsl-list
[Top] [All Lists]

Re: [xsl] Templates.newTransformer synchronization

2006-07-17 06:43:13
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, andrew welch <andrew(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com> 
wrote:
On 7/17/06, Mohsen Saboorian <mohsens(_at_)gmail(_dot_)com> 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/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--