You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by mr...@apache.org on 2009/02/23 19:34:55 UTC

svn commit: r747099 - /ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/hooks/ODEAxisService.java

Author: mriou
Date: Mon Feb 23 18:34:55 2009
New Revision: 747099

URL: http://svn.apache.org/viewvc?rev=747099&view=rev
Log:
ODE-526 wsdl resource files are locked during undeploy while a process is executing.

Modified:
    ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/hooks/ODEAxisService.java

Modified: ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/hooks/ODEAxisService.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/hooks/ODEAxisService.java?rev=747099&r1=747098&r2=747099&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/hooks/ODEAxisService.java (original)
+++ ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/hooks/ODEAxisService.java Mon Feb 23 18:34:55 2009
@@ -70,9 +70,10 @@
                     +" WSDL="+wsdlDefinition.getDocumentBaseURI()+" BPEL="+pconf.getBpelDocument());
         }
 
+        InputStream is = null;
         try {
             URI baseUri = pconf.getBaseURI().resolve(wsdlDefinition.getDocumentBaseURI());
-            InputStream is = baseUri.toURL().openStream();
+            is = baseUri.toURL().openStream();
             WSDL11ToAxisServiceBuilder serviceBuilder = new WSDL11ToAxisPatchedBuilder(is, wsdlServiceName, portName);
             serviceBuilder.setBaseUri(baseUri.toString());
             serviceBuilder.setCustomResolver(new Axis2UriResolver());
@@ -126,6 +127,12 @@
             return axisService;
         } catch (Exception e) {
             throw AxisFault.makeFault(e);
+        } finally {
+            try {
+                if( is!=null) is.close();
+            } catch (IOException ioe) {
+                //Ignoring
+            }
         }
     }