geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r777366 - /geronimo/server/trunk/plugins/axis2/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/WSDLQueryHandler.java
Date Fri, 22 May 2009 05:07:25 GMT
Author: xuhaihong
Date: Fri May 22 05:07:24 2009
New Revision: 777366

URL: http://svn.apache.org/viewvc?rev=777366&view=rev
Log:
GERONIMO-4623 Webservice request handling consuming considerable CPU

Modified:
    geronimo/server/trunk/plugins/axis2/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/WSDLQueryHandler.java

Modified: geronimo/server/trunk/plugins/axis2/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/WSDLQueryHandler.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/axis2/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/WSDLQueryHandler.java?rev=777366&r1=777365&r2=777366&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/axis2/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/WSDLQueryHandler.java
(original)
+++ geronimo/server/trunk/plugins/axis2/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/WSDLQueryHandler.java
Fri May 22 05:07:24 2009
@@ -62,6 +62,8 @@
 
     private static final Logger LOG = LoggerFactory.getLogger(WSDLQueryHandler.class);
     
+    private static TransformerFactory transformerFactory = TransformerFactory.newInstance();

+    
     private Map<String, Definition> wsdlMap;
     private Map<String, SchemaReference> schemaMap;
     private Map<String, String> importMap;
@@ -294,7 +296,7 @@
     public static void writeTo(Source src, OutputStream os) {
         Transformer it;
         try {
-            it = TransformerFactory.newInstance().newTransformer();
+            it = transformerFactory.newTransformer();
             it.setOutputProperty(OutputKeys.METHOD, "xml");
             it.setOutputProperty(OutputKeys.INDENT, "yes");
             it.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "4");



Mime
View raw message