geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r777367 - /geronimo/server/branches/2.1/plugins/axis2/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/WSDLQueryHandler.java
Date Fri, 22 May 2009 05:08:49 GMT
Author: xuhaihong
Date: Fri May 22 05:08:48 2009
New Revision: 777367

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

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

Modified: geronimo/server/branches/2.1/plugins/axis2/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/WSDLQueryHandler.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.1/plugins/axis2/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/WSDLQueryHandler.java?rev=777367&r1=777366&r2=777367&view=diff
==============================================================================
--- geronimo/server/branches/2.1/plugins/axis2/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/WSDLQueryHandler.java
(original)
+++ geronimo/server/branches/2.1/plugins/axis2/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/WSDLQueryHandler.java
Fri May 22 05:08:48 2009
@@ -47,10 +47,9 @@
 import javax.xml.transform.stream.StreamResult;
 
 import org.apache.axis2.description.AxisService;
-import org.apache.geronimo.jaxws.WSDLUtils;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import org.apache.geronimo.webservices.WebServiceContainer.Request;
+import org.apache.geronimo.jaxws.WSDLUtils;
 import org.w3c.dom.Element;
 import org.w3c.dom.Node;
 import org.w3c.dom.NodeList;
@@ -59,6 +58,8 @@
 
     private static final Log LOG = LogFactory.getLog(WSDLQueryHandler.class);
     
+    private static TransformerFactory transformerFactory = TransformerFactory.newInstance();
+    
     private Map<String, Definition> mp = new ConcurrentHashMap<String, Definition>();
     private Map<String, SchemaReference> smp = new ConcurrentHashMap<String, SchemaReference>();
     private AxisService service;
@@ -241,7 +242,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