After reading the differences between obtaining the session map via ActionContext.getContext().getSession()
and having it injected through
SessionAware
I was wondering which is the preferred method, and why?
The API recomends to use SessionAware
, and I read on the web that using SessionAware
makes the application easier to test--is testing the only issue?
Can someone elaborate a little bit on this subject or point out to references explaining this?