Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
XSLTransformer.transform method - thread safe?

XSLTransformer.transform method - thread safe?

2007-11-15       - By Clint.Redwood@(protected)

 Back
Reply:     1     2     3     4  

Micheal and Laurent,

Thanks for your resposes. I've rechecked my log files and I misread the
issue. It appears that my program has just managed to completely miss out
the transformation step on one of the threads.

Apologies for having wasted your time.

Yours,

Clint Redwood
Senior Solutions Architect - Boots Account
Xansa, a Steria company
t 0115 9595730 (Ext) 725730 (Int)
e clint.redwood@(protected)
e clint.redwood@(protected)
http://www.xansa.com


                                                                         
            "Michael Kay"                                                
            <mike@(protected)                                            
            m>                                                         To
                                      <Clint.Redwood@(protected)>,          
            15 November 2007          <jdom-interest@(protected)>            
            11:27 GMT                                                  cc
                                                                         
                                                                  Subject
                                      RE: [jdom-interest]                
                                      XSLTransformer.transform method -  
                                      thread safe?                        
                                                                         
                                                                         
                                                                         
                                                                         
                                                                         
                                                                         





The JDOM XSLTransformer class is really just a wrapper for a JAXP Templates
object, so it ought to be thread-safe. Bugs are always possible, but they
need evidence!

Note that when you do a Saxon transformation using this mechanism, it
copies
the input from a JDOM tree to a Saxon tree. It's also possible to do a
transformation using Saxon that operates on the JDOM tree without copying,
by creating a net.sf.saxon.jdom.DocumentWrapper and supplying that as the
Source object. (However, this won't always perform better - it depends what
the transformation is actually doing).

There's only been one multithreading bug detected in Saxon over the last
year [1], and that only affects XQuery.

Michael Kay
http://www.saxonica.com/

[1]
http://sourceforge.net/tracker/index.php?func=detail&aid=1673048&group_id=29

872&atid=397617


> -- --Original Message-- --
> From: jdom-interest-bounces@(protected)
> [mailto:jdom-interest-bounces@(protected)] On Behalf Of
> Clint.Redwood@(protected)
> Sent: 15 November 2007 10:04
> To: jdom-interest@(protected)
> Subject: [jdom-interest] XSLTransformer.transform method -
> thread safe?
>
> Hi,
>
> I've just had an XSL transform go VERY weird, and I think it
> may be that two threads tried to use the same XSLTransformer
> object at the same time.
> The result seemed to be that it returned the untransformed data.
>
> I'm using the Saxon 8.9 XSLT2.0 Engine, and also there are
> some SAXON-SQL queries in the XSLT in question.
>
> The Javadoc states that the XSLTransformer is thread safe,
> but I'm not sure if I've either found an issue with this, or
> if there's something not threadsafe in the Saxon implementation.
>
> Any suggestions as to how I could confirm this would be
> appreaciated as I've not done much in the way of
> multi-threaded debugging.
>
> Yours,
>
> Clint Redwood
> Senior Solutions Architect - Boots Account Xansa, a Steria
> company t 0115 9595730 (Ext) 725730 (Int) e
> clint.redwood@(protected) e clint.redwood@(protected)
> http://www.xansa.com
>
>
> Whilst this email has been checked for all known viruses,
> recipients should undertake their own virus checking as Xansa
> will not accept any liability whatsoever.
>
> This email and any files transmitted with it are confidential
> and protected by client privilege.  It is solely for the use
> of the intended recipient.
> Please delete it and notify the sender if you have received
> it in error. Unauthorised use is prohibited.
>
> Any opinions expressed in this email are those of the
> individual and not necessarily the organisation.
>      Xansa, Registered Office: 420 Thames Valley Park Drive,
>      Thames Valley Park, Reading, RG6 1PU, UK.
>      Registered in England No.1000954.
>      t  +44 (0)8702 416181
>      w  www.xansa.com
> __ ____ ____ ____ ____ ____ ____ ____ ____ ____
> To control your jdom-interest membership:
> http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
> rhost.com




Whilst this email has been checked for all known viruses, recipients should
undertake their own virus checking as Xansa will not accept any liability
whatsoever.

This email and any files transmitted with it are confidential and protected by
client privilege.  It is solely for the use of the intended recipient.
Please delete it and notify the sender if you have received it in
error. Unauthorised use is prohibited.

Any opinions expressed in this email are those of the individual and not
necessarily the organisation.
    Xansa, Registered Office: 420 Thames Valley Park Drive,
    Thames Valley Park, Reading, RG6 1PU, UK.
    Registered in England No.1000954.
    t  +44 (0)8702 416181
    w  www.xansa.com
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.