title: What method to use to make a Servlet thread-safe?
body: <p>I am trying to make a servlet thread-safe with sessions. I have read up on different techniques such as a synchronized block, AtomicReference or ConcurrentHashMap. What are the trade-offs for each technique, if any?</p>