You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Andrea Zoppello <zo...@tiscali.it> on 2008/06/04 11:11:47 UTC

Threading Issue on XSLT Lightweight component???

Hi all,

I'm  having some thread issue on the 
org.apache.servicemix.components.xslt.XsltComponent.

I'm testing in an environment where i've a high number of concurrent 
threads.

Not sure where the problem is, but i'm sure it's a threading issue 
because if i synchronize all the code of
the tranformer method all problems are solved.

BTW this is just not a solution because introducing  synchronized block 
in code is not good for performance
and scalability.

 protected boolean transform(MessageExchange exchange, NormalizedMessage 
in, NormalizedMessage out)
            throws MessagingException {
        synchronized (this){
           // OLD CODE
        }
}


Any Idea?? Is the new SAXON Component Thread Safe??