Skip to: Site menu | Main content

XPlanner

Planning and tracking tool for agile teams following XP or Scrum

REFACTOR Spring Context Per Request Print

Goal: Eliminate all singletons

Using a spring context per request we can pre-populate it with all necessary contextual dependencies: http request & response, hb session... We can also have a saved spring context at the session level and use it as a parent to request contexts.

Question: how heavy-weight it is to create a context per request?