Author: darran.lofthouse(a)jboss.com
Date: 2009-02-10 12:07:03 -0500 (Tue, 10 Feb 2009)
New Revision: 9277
Modified:
common/branches/jbossws-common-1.0.0.GA_CP02_JBPAPP-1696/src/main/java/org/jboss/wsf/common/DOMUtils.java
common/branches/jbossws-common-1.0.0.GA_CP02_JBPAPP-1696/version.properties
Log:
[JBPAPP-1696] Each request results to an open file descriptor.
Modified:
common/branches/jbossws-common-1.0.0.GA_CP02_JBPAPP-1696/src/main/java/org/jboss/wsf/common/DOMUtils.java
===================================================================
---
common/branches/jbossws-common-1.0.0.GA_CP02_JBPAPP-1696/src/main/java/org/jboss/wsf/common/DOMUtils.java 2009-02-10
16:55:27 UTC (rev 9276)
+++
common/branches/jbossws-common-1.0.0.GA_CP02_JBPAPP-1696/src/main/java/org/jboss/wsf/common/DOMUtils.java 2009-02-10
17:07:03 UTC (rev 9277)
@@ -161,6 +161,10 @@
{
throw new IOException(e.toString());
}
+ finally
+ {
+ xmlStream.close();
+ }
}
/** Parse the given input source and return the root Element
@@ -177,6 +181,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_CP02_JBPAPP-1696/version.properties
===================================================================
--- common/branches/jbossws-common-1.0.0.GA_CP02_JBPAPP-1696/version.properties 2009-02-10
16:55:27 UTC (rev 9276)
+++ common/branches/jbossws-common-1.0.0.GA_CP02_JBPAPP-1696/version.properties 2009-02-10
17:07:03 UTC (rev 9277)
@@ -5,8 +5,8 @@
specification.vendor=JBoss (
http://www.jboss.org)
specification.version=jbossws-2.0
-version.id=1.0.0.GA_CP02
-repository.id=1.0.0.GA_CP02
+version.id=1.0.0.GA_CP02_JBPAPP-1696
+repository.id=1.0.0.GA_CP02_JBPAPP-1696
implementation.title=JBoss Web Services - Common
implementation.url=http://www.jboss.org/products/jbossws