OK, I see now. It doesn't matter if you actually decide to use the NodeRevisionContent object. Once you retrieve it from the Content helper the stream must somehow be closed. I was conditionally using it and so connections were left open.

Anyway, thanks again Oliver, you saved my day :-)

--
Unico

Unico Hommes wrote:

Dude it worked! Thanks!

I am reading the NodeRevisionContent like so:

InputStream in = null;
try {
 in = new ByteArrayInputStream(content.getContentBytes());
}
finally {
 in.close();
}

Perhaps something goes wrong during NodeRevisionContent.getContentBytes() ? But it looks like that method correctly closes the InputStream though.

--
Unico

Oliver Zeigermann wrote:

If you are not using compressed there will be an input stream in
content that is the one from the JDBC driver and *must* be closed to
close the connection. Try enabling compression if not already done and
see if this changes anything.

Oliver




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to