I have an attribute stored in the servlet context scope. Various sessions can access it at any giving moment. It must be thread safe. How can achieve thread safe?
CurrentUsers cs = (CurrentUsers)cxt.getAttribute(WebKeys.CurrentUsers);
String user = (String)session.getAttribute(WebKeys.UserID);
cs.remove(user); // or other modification
cxt.setAttribute(WebKeys.CurrentUsers, cs);
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
