Description
This new static and shared service is particularly useful, but not limited to, ensure ThreadLocal state to be cleared after each servlet request.
Because it operates on self registration of callback objects, the service can be used from and integrated with anywhere, without need for additional "cleanup" API additions.
A default ThreadLocal specific cleanup callback bean will be provided which will even take care of the callback registration so it only needs to be instantiated with a ThreadLocal instance, e.g. like:
new ServletRequestThreadLocalCleanupCallback(aThreadLocalInstance);
Attachments
Issue Links
- breaks
-
JS2-1283 ServletRequestCleanupService throws RuntimeException when a portlet is rendered asynchronously in parallel mode
- Resolved