I've seen several time in nuxeo sources that streams are not closed after being used. This is very bad. File or URL streams are system resources and you must close them manually.
Please pay attention to this sort of things.

An Example from JNDILookupHelper:

serverContainerLocation.load(jndiResourceURL.openStream());

This is *bad*.

You should write it like this:

InputStream in = null;
try {
   in = jndiResourceURL.openStream();
   // do something with the stream
   // ...
} finally {
   // close the stream!
   if (in != null) in.close();
}


Bogdan


_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to