[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Templates.newTransformer synchronization

Subject: Re: Templates.newTransformer synchronization
From: "Mohsen Saboorian" <mohsens@xxxxxxxxx>
Date: Mon, 17 Jul 2006 17:12:54 +0330
jaxp2
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.j.welch@xxxxxxxxx> wrote:
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.