We have tests which do multithreaded transformations on all platforms
without any problems.  However, these tests use the default source
implementation, not the Xerces DOM.

There should not be any threading issues within Xalan, but you have to be
very careful when using Xerces in a multithreaded environment, because you
cannot shared DOM_Document instances amonst threads.  There is also a lot
of synchronization within Xerces, so you will definitely get a big
performance hit when you use the Xerces DOM.

If you use Xalan's default source implementation, you can freely share
instances amongst threads, and you will get much better performance.

Dave



                                                                                
                                                    
                      "S. Asif Imam"                                            
                                                    
                      <[EMAIL PROTECTED]         To:      
<[email protected]>                                         
                      rks.com.pk>                   cc:      (bcc: David N 
Bertoni/Cambridge/IBM)                                   
                                                    Subject: Some problem with 
XercesDOMSupport under a thread ?                    
                      05/26/2002 10:30 PM                                       
                                                    
                                                                                
                                                    
                                                                                
                                                    



Hi All,

May be a new question for every one in this list.

I am  trying to run Transformation in  multi-threads (Xerces DOM  to XALAN
transformation), and write results in a file (managing a thread queue).
The  time I declare

XercesDOMSupport theDOMSupport;
XercesParserLiaison theParserLiaison(theDOMSupport);

My queue thread stops. Some thing very un predictable. and when I comment
the call to class managing trasnformation it works fine..

Any clue ? Idea ??

I am using RogueWave thread Libraries (will post this to RogueWave too) .

Thanx in advacne.
Regards
Asif.
ps: C++  is my coding platform.




Reply via email to