Hello,
Suppose I would like to keep my attributes in a Servlet which suppose to be Thread-safe but it does not implement the SingleThreadModel.
Which is better: To store the attributes at the HttpServletRequest object (where it is per request, therefore will be kept for each user) or at the ServletContext object (Where it is shared globaly and one can be sure everyone are reading and updating the same data)?
Suppose I would like to keep my attributes in a Servlet which suppose to be Thread-safe but it does not implement the SingleThreadModel.
Which is better: To store the attributes at the HttpServletRequest object (where it is per request, therefore will be kept for each user) or at the ServletContext object (Where it is shared globaly and one can be sure everyone are reading and updating the same data)?