Hi Guys,

we are using restlet with spring on tomcat. We use the RestletFrameWorkServlet 
in which we pass a class extending SpringRouter. Everything seemed to stop 
nicely. All our destroy methods got called, but somehow all the application 
classes stuck.

After some memory debugging we came up with a workaround using a filter that 
does this:

chain.doFilter(request, response);

Response.setCurrent(null);
Application.setCurrent(null);
Context.setCurrent(null);

Thereby resetting all the ThreadLocals in these classes. This seems a bit 
hackish. Is there anything we overlooked in our setup?

Thanks,

Felix

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1215840

Reply via email to