The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

bunuel (1) [Avatar] Offline
#1
Hello,
we are asked in this q if there is sthing wrong with this filter and the answer is, no, there is nothing wrong with it.

However, since filters are - like servlets - multithreaded, should we not be synchronising the access to the session object?

Also, because the chapter about - now deprecated - SingleThreadModel was removed from the 2nd edition, the discussion about thread-safety of the objects/atributes in scope (which would alert us to the above) has also been removed?

Many thanks
Kind regards