[jbossws-commits] JBossWS SVN: r9873 - common/branches/jbossws-common-1.0.0.GA_CP03_JBPAPP-1937/src/main/java/org/jboss/wsf/common.
jbossws-commits at lists.jboss.org
jbossws-commits at lists.jboss.org
Fri Apr 24 09:29:05 EDT 2009
Author: darran.lofthouse at jboss.com
Date: 2009-04-24 09:29:04 -0400 (Fri, 24 Apr 2009)
New Revision: 9873
Modified:
common/branches/jbossws-common-1.0.0.GA_CP03_JBPAPP-1937/src/main/java/org/jboss/wsf/common/DOMUtils.java
Log:
[JBPAPP-1937] Each request results to an open file descriptor.
Modified: common/branches/jbossws-common-1.0.0.GA_CP03_JBPAPP-1937/src/main/java/org/jboss/wsf/common/DOMUtils.java
===================================================================
--- common/branches/jbossws-common-1.0.0.GA_CP03_JBPAPP-1937/src/main/java/org/jboss/wsf/common/DOMUtils.java 2009-04-24 13:27:28 UTC (rev 9872)
+++ common/branches/jbossws-common-1.0.0.GA_CP03_JBPAPP-1937/src/main/java/org/jboss/wsf/common/DOMUtils.java 2009-04-24 13:29:04 UTC (rev 9873)
@@ -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
More information about the jbossws-commits
mailing list