concurrent requests hit blocks that are synchronized on the same
object.
-Ursprüngliche Nachricht-
Von: Vernon Wu [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 20. September 2002 16:42
An: Tomcat Users List
Betreff: Re: AW: How can I achieve thread safe for context attributes
.
-Ursprüngliche Nachricht-
Von: Vernon Wu [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 20. September 2002 16:42
An: Tomcat Users List
Betreff: Re: AW: How can I achieve thread safe for context attributes?
Thanks Ralph for the solutation. I, however, wonder whether
the server will be slow down
An: [EMAIL PROTECTED]
Betreff: How can I achieve thread safe for context attributes?
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
]
Betreff: How can I achieve thread safe for context attributes?
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
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 =