Jetspeed 2
  1. Jetspeed 2
  2. JS2-1253

Generic and shared ServletRequestCleanupService with callback registration for cleanup actions to be executed after a servlet/filter request

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.2
    • Fix Version/s: 2.2.2
    • Component/s: Other
    • Labels:
      None

      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);

        Issue Links

          Activity

          Hide
          Ate Douma added a comment -

          Opening again for some further improvements and simplifications

          Show
          Ate Douma added a comment - Opening again for some further improvements and simplifications
          Hide
          Ate Douma added a comment -

          Service provided and used to resolve JS2-589 and fix some reported errors from JS2-1183

          Show
          Ate Douma added a comment - Service provided and used to resolve JS2-589 and fix some reported errors from JS2-1183

            People

            • Assignee:
              Ate Douma
              Reporter:
              Ate Douma
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development