Hello All:

I am trying to transform lots of xml files to html by creating multiple threads,
one thread for each file.
Somehow the transformation is happening in a serial fashion.

Can someone tell me what can possibly be wrong?

*************************************************************************
Run method of my class which implements Runnable
*************************************************************************
  public void run() {
        try {
     .....
               TransformerFactory tFactory = TransformerFactory.newInstance();

               Templates translet = tFactory.newTemplates(new
StreamSource(strXmlToHtmlArgs[1]));

               Transformer transformer = translet.newTransformer();

               transformer.transform(new StreamSource(strXmlToHtmlArgs[0]),
                       new StreamResult(new
FileOutputStream(strXmlToHtmlArgs[2])));
     .......

        }
 .....
  }


Thanks
Snehal A. Shah


Reply via email to