Hi,
a question regarding synchronizing the access to the list of users with whatever scope.
How should i go about?
1 - should i sync the scope itself? (session, context..)
synchronized(context) or synchronized(session)...
2- or should i sync the list object itself instead?
synchronized( getServletContext().getAttribute("userList") )
synchronized( req.getSession().getAttribute("userList") )
What is the best approach?
Tks