Re: AW: AW: How can I achieve thread safe for context attributes?

2002-09-23 Thread Vernon Wu
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

AW: AW: How can I achieve thread safe for context attributes?

2002-09-22 Thread Ralph Einfeldt
. -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

AW: How can I achieve thread safe for context attributes?

2002-09-20 Thread Ralph Einfeldt
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

Re: AW: How can I achieve thread safe for context attributes?

2002-09-20 Thread Vernon Wu
] 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

How can I achieve thread safe for context attributes?

2002-09-19 Thread Vernon Wu
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 =