Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
0.1-incubating
-
None
Description
The cache should not be a private DirectMemoryServlet field as there is nothing per the Servlet spec that prevents the Servlet container to hold several instances of the same servlet class. This may lead to memory consumption (as the cache may be created several times) and unexpected behaviour (as one instance may put the object in ITS cache and another one try to retrieve it and either no finding it or returning another object !!!!).
It should be a Servlet context attribute and managed through the ServletContextListener pattern.
As soon as I have completed the work i'm doing on the Closeable stuff, I'm will submit the fix