Author: darran.lofthouse(a)jboss.com
Date: 2009-03-18 13:05:45 -0400 (Wed, 18 Mar 2009)
New Revision: 9621
Modified:
common/branches/jbossws-common-1.0.0.GA_CP03_JBPAPP-1790/src/main/java/org/jboss/wsf/common/DOMUtils.java
common/branches/jbossws-common-1.0.0.GA_CP03_JBPAPP-1790/version.properties
Log:
[JBPAPP-1790] Each request results to an open file descriptor.
Modified:
common/branches/jbossws-common-1.0.0.GA_CP03_JBPAPP-1790/src/main/java/org/jboss/wsf/common/DOMUtils.java
===================================================================
---
common/branches/jbossws-common-1.0.0.GA_CP03_JBPAPP-1790/src/main/java/org/jboss/wsf/common/DOMUtils.java 2009-03-18
16:53:48 UTC (rev 9620)
+++
common/branches/jbossws-common-1.0.0.GA_CP03_JBPAPP-1790/src/main/java/org/jboss/wsf/common/DOMUtils.java 2009-03-18
17:05:45 UTC (rev 9621)
@@ -169,6 +169,10 @@
{
throw new IOException(e.toString());
}
+ finally
+ {
+ xmlStream.close();
+ }
}
/** Parse the given input source and return the root Element
@@ -185,6 +189,19 @@
{
throw new IOException(e.toString());
}
+ finally
+ {
+ InputStream is = source.getByteStream();
+ if (is != null)
+ {
+ is.close();
+ }
+ Reader r = source.getCharacterStream();
+ if (r != null)
+ {
+ r.close();
+ }
+ }
}
/** Create an Element for a given name
Modified: common/branches/jbossws-common-1.0.0.GA_CP03_JBPAPP-1790/version.properties
===================================================================
--- common/branches/jbossws-common-1.0.0.GA_CP03_JBPAPP-1790/version.properties 2009-03-18
16:53:48 UTC (rev 9620)
+++ common/branches/jbossws-common-1.0.0.GA_CP03_JBPAPP-1790/version.properties 2009-03-18
17:05:45 UTC (rev 9621)
@@ -5,8 +5,8 @@
specification.vendor=JBoss (
http://www.jboss.org)
specification.version=jbossws-2.0
-version.id=1.0.0.GA_CP03
-repository.id=1.0.0.GA_CP03
+version.id=1.0.0.GA_CP03_JBPAPP-1790
+repository.id=1.0.0.GA_CP03_JBPAPP-1790
implementation.title=JBoss Web Services - Common
implementation.url=http://www.jboss.org/products/jbossws