I see there is a release() method on the Representation class but I can find any
place in the trunk where this method is actually used.

I have a problem in that I'm using an OutputRepresentation instance to return
a resource from eXist but I need to ensure that the read lock on that
resource is
always released.  If not, things will eventually lock up.

While I've implemented a finalize() method, that will only do cleanup if the
object is garbage collected.  What I need is a guarantee from the Restlet
platform and server component that my representation will always be "released".

My assumption here is that any cancelation or network issue in returning the
resource to the user will result in the "write" method either not being called
or being interrupted by an I/O exception.  While I can handle the case of the
I/O exception inside my representation by a finally clause, I can't handle the
case where the 'write' method is never called for some reason.

--Alex Milowski

Reply via email to